refactor(settings.py): organize apps into 3 categories
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
5049ba8b4d
commit
9ca658038e
|
@ -46,27 +46,36 @@ ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=[])
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
DJANGO_APPS = [
|
||||||
"dynamic_preferences",
|
|
||||||
"shiftregister.app",
|
|
||||||
"shiftregister.core",
|
|
||||||
"shiftregister.fallback",
|
|
||||||
"shiftregister.importer",
|
|
||||||
"shiftregister.metrics",
|
|
||||||
"shiftregister.pages",
|
|
||||||
"shiftregister.signage",
|
|
||||||
"shiftregister.team",
|
|
||||||
"shiftregister.feedback",
|
|
||||||
"django.contrib.admin",
|
"django.contrib.admin",
|
||||||
"django.contrib.auth",
|
"django.contrib.auth",
|
||||||
"django.contrib.contenttypes",
|
"django.contrib.contenttypes",
|
||||||
"django.contrib.humanize",
|
"django.contrib.humanize",
|
||||||
"django.contrib.sessions",
|
|
||||||
"django.contrib.messages",
|
"django.contrib.messages",
|
||||||
|
"django.contrib.sessions",
|
||||||
"django.contrib.staticfiles",
|
"django.contrib.staticfiles",
|
||||||
|
]
|
||||||
|
|
||||||
|
THIRDPARTY_APPS = [
|
||||||
|
"dynamic_preferences",
|
||||||
"phonenumber_field",
|
"phonenumber_field",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
LOCAL_APPS = [
|
||||||
|
"shiftregister.app",
|
||||||
|
"shiftregister.core",
|
||||||
|
"shiftregister.fallback",
|
||||||
|
"shiftregister.feedback",
|
||||||
|
"shiftregister.importer",
|
||||||
|
"shiftregister.messaging",
|
||||||
|
"shiftregister.metrics",
|
||||||
|
"shiftregister.pages",
|
||||||
|
"shiftregister.signage",
|
||||||
|
"shiftregister.team",
|
||||||
|
]
|
||||||
|
|
||||||
|
INSTALLED_APPS = DJANGO_APPS + THIRDPARTY_APPS + LOCAL_APPS
|
||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
"django.middleware.security.SecurityMiddleware",
|
"django.middleware.security.SecurityMiddleware",
|
||||||
"django.contrib.sessions.middleware.SessionMiddleware",
|
"django.contrib.sessions.middleware.SessionMiddleware",
|
||||||
|
|
Loading…
Reference in New Issue