- In /config/ copy development_sample.py as development.py
- Database is SQLite, local, and execute
python manage.py migrate
- Start the project
- Register a user in /users/register/ endpoint
- Login with registered credentials in /users/token/ endpoint
- In swagger click "Authorize" button and type
Bearer <access token from response>
- Enjoy other endpoints
- Add in Blog model boolean field
enabled
- Show in admin blog list the real blog name and status (enabled/disabled): http://prntscr.com/nnsoa8
- Make an endpoint for create a blog post (similar as register endpoint)
- Create a model
Comments
withtext
andblog
foreign key - Add Comments in Django Admin
- Create an endpoint that creates a comment to a blog post (input: blog_id, text)
- In endpoint
/blog/blog/{id}/
return the Blog post object and list of comments
Develop a task management platform
Screens:
- List: http://prntscr.com/novabn
- Create: http://prntscr.com/novbj8
- View: http://prntscr.com/novbth
Functions:
- Register
- Login
- View list of tasks
- Create a task
- View my tasks
- View Completed tasks
- Assign a task to me
- Complete a task
- Remove task
- Add comment to task
- View task comments
- Add notification then task is assigned to me
- Add notification then my task in commented
- Add notification then commented task is closed
- View my notifications
- View count of new notifications
For run project in another ENV:
DJANGO_ENV = production
default value is development
mkdir -p apps/name_of_app
python manage.py startapp name_of_app apps/name_of_app