{"action":"published","release":{"url":"https://api.github.com/repos/brainless/getbnb/releases/2398711","assets_url":"https://api.github.com/repos/brainless/getbnb/releases/2398711/assets","upload_url":"https://uploads.github.com/repos/brainless/getbnb/releases/2398711/assets{?name,label}","html_url":"https://github.com/brainless/getbnb/releases/tag/v0.2-alpha","id":2398711,"tag_name":"v0.2-alpha","target_commitish":"master","name":"Introducing Django models and admin","draft":false,"author":{"login":"brainless","id":350106,"avatar_url":"https://avatars.githubusercontent.com/u/350106?v=3","gravatar_id":"","url":"https://api.github.com/users/brainless","html_url":"https://github.com/brainless","followers_url":"https://api.github.com/users/brainless/followers","following_url":"https://api.github.com/users/brainless/following{/other_user}","gists_url":"https://api.github.com/users/brainless/gists{/gist_id}","starred_url":"https://api.github.com/users/brainless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brainless/subscriptions","organizations_url":"https://api.github.com/users/brainless/orgs","repos_url":"https://api.github.com/users/brainless/repos","events_url":"https://api.github.com/users/brainless/events{/privacy}","received_events_url":"https://api.github.com/users/brainless/received_events","type":"User","site_admin":false},"prerelease":true,"created_at":"2016-01-09T11:06:12Z","published_at":"2016-01-09T11:26:53Z","assets":[],"tarball_url":"https://api.github.com/repos/brainless/getbnb/tarball/v0.2-alpha","zipball_url":"https://api.github.com/repos/brainless/getbnb/zipball/v0.2-alpha","body":"# Version 0.2\r\n## Changes\r\n* Applications added - listing, message and people\r\n* Models added to listing app - PropertyType, RoomType, Property, Location\r\n* Models added to message app - Message\r\n* Models added to people app - Profile\r\n* SQLite db (```db.sqlite3```) and migrations (inside each app) ignored in git\r\n\r\n## Steps to follow\r\n* In the root of the project, create three python packages named ```listing```, ```message``` and ```people```\r\n  - A python package is simply a folder with a blank file named ```__init__.py``` inside it\r\n  - https://docs.python.org/3.4/tutorial/modules.html#packages\r\n  - Each python package here will become a Django app for us\r\n  - https://docs.djangoproject.com/en/1.9/ref/applications/\r\n* In each of the packages create a ```models.py``` and an ```admin.py```\r\n* The ```models.py``` file for each Django app contains the actual data models\r\n  - Models define what are the entities where we store our data\r\n  - Models are used to save to data to an actual database like MySQL\r\n  - https://docs.djangoproject.com/en/1.9/topics/db/models/\r\n  - Models have fields which are properties that we need in each entity\r\n  - For example we need a ```Message``` model in the ```message``` app which will store the sender, recipient and text (plus some other fields) for each message that users can send to each other\r\n  - https://docs.djangoproject.com/en/1.9/ref/models/fields/\r\n* Add admin configurations to each ```admin.py``` file in each Django app\r\n  - Django comes with built in admin functionality\r\n  - We simply have to configure what models we want administered in the Django admin\r\n  - Django admin can give us easy access to our data, this would usually be used only by the site owners or staff\r\n  - https://docs.djangoproject.com/en/1.9/ref/contrib/admin/\r\n* Add settings to ```getbnb/settings.py``` in the project to enable the new apps\r\n  - https://docs.djangoproject.com/en/1.9/ref/applications/#configuring-applications"}}