This is a template for DRF with Custom User Model for quickly starting a DRF Project
This template includes BaseModel
, DynamicFieldsModelSerializer
, Custom User
Model and logging capabilities.
drf-starter-template.
| manage.py
| README.md
| requirements.txt
|
+---core
| | admin.py
| | apps.py
| | managers.py
| | models.py
| | serializers.py
| | tests.py
| | views.py
| | __init__.py
| |
| \---migrations
| __init__.py
|
+---logs
| project_name.log
|
+---project_name
| | .env.example
| | asgi.py
| | settings.py
| | urls.py
| | wsgi.py
| | __init__.py
|
\---users
| admin.py
| apps.py
| models.py
| serializers.py
| tests.py
| views.py
| __init__.py
|
\---migrations
__init__.py
Django
Obviously ;)
DRF
For CORS Headers
To use environment variables from
.env
file
To access Advanced Django Shell
For multiple complex filters
For Base Model
For Token Authentication
Swagger Generator
Setup .env
in your project settings.
.env.example
is provided for reference
django-admin startproject <my_project> --template https://github.com/wh0th3h3llam1/drf-starter-template.git
python manage.py makemigrations
Note: Default Database is SQLite3. It can be configured in
.env
python manage.py migrate