As a class, this is where we'll start for Session 09.
To get this set up on your machine:
- Fork and clone the repository
- Open a command prompt and activate your djangoenv
- Navigate to the directory containing manage.py
- Create a database using the model
$ python manage.py migrate - Create a super user - follow the instructions to finish creating super user
$ python manage.py createsuperuser - Start the server
$ python manage.py runserver - In your browser, open localhost:8000 to see the application
#Changes made since the end of Session 08:
myblog/admin.py
- Created PostAdmin and CategoryAdmin classes
- Added make_published function
- Added CategorizationInline class
- Registered Post and Category classes with their new Admin classes
myblog/models.py
- Added a metaclass to Categories to make the name in the admin appear as "Categories" instead of "Categorys"
- Added unicode methods to both Post and Category classes