Skip to content

Instantly share code, notes, and snippets.

@8area8
Last active September 5, 2020 12:49
Show Gist options
  • Save 8area8/1654b879ef0aa4243c2daa5d53257aa2 to your computer and use it in GitHub Desktop.
Save 8area8/1654b879ef0aa4243c2daa5d53257aa2 to your computer and use it in GitHub Desktop.
Django apps management

Django apps structure.

Use this to manage yours apps inside your backend directory:

.
|____django_dir
| |____apps
| | |____your_app_folder
| |__settings.py
|____manage.py

Note : It is easier to use python manage.py startapp your_app_folder and move the folder by hand.

# ...
INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
# my apps
"django_dir.apps.your_app_folder",
]
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment