- 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)
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