Skip to content

Instantly share code, notes, and snippets.

@brunomichetti
Created September 25, 2019 18:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunomichetti/9b8ee74fa896a92a25afab290f0a740b to your computer and use it in GitHub Desktop.
Save brunomichetti/9b8ee74fa896a92a25afab290f0a740b to your computer and use it in GitHub Desktop.
project_name
|
|__project_name (Put all the settings for the app here.)
| |__ __init__.py
| |__settings
| |__ __init__.py
| |__ base.py
| |__ development.py
| |__ staging.py
| |__ production.py
| ...
| |__wsgi.py
| |__asgi.py(optional)
| |__urls.py
| ...
|
|__templates (These general templates are loaded last in the application.)
|
|__api
| |__ __init__.py
| ...
| |__ urls.py (Use this file to route the apps located under the applications folder.)
|
|__applications
| |__ __init__.py
| |__app1
| ... |__models.py (Split the folder and import models in __init__ if necessary.)
| |__views.py
| |__serializers.py
| |__urls.py
| |__test
| | ...
| |__templates (Optional and not present if the project is API only.)
| |
| |__api.py (Optional and not present if the project is API only.)
| ... (Add more files if they’re needed.)
|
|__utils
| |__util_1.py
| |__util_2.py
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment