refactor(settings.py): organize apps into 3 categories

pull/1/head
Luca 8 months ago
parent 5049ba8b4d
commit 526d317e6f

@ -46,27 +46,35 @@ ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=[])
# Application definition # Application definition
INSTALLED_APPS = [ DJANGO_APPS = [
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.humanize",
"django.contrib.messages",
"django.contrib.sessions",
"django.contrib.staticfiles",
]
THIRDPARTY_APPS = [
"dynamic_preferences", "dynamic_preferences",
"phonenumber_field",
]
LOCAL_APPS = [
"shiftregister.app", "shiftregister.app",
"shiftregister.core", "shiftregister.core",
"shiftregister.fallback", "shiftregister.fallback",
"shiftregister.feedback",
"shiftregister.importer", "shiftregister.importer",
"shiftregister.metrics", "shiftregister.metrics",
"shiftregister.pages", "shiftregister.pages",
"shiftregister.signage", "shiftregister.signage",
"shiftregister.team", "shiftregister.team",
"shiftregister.feedback",
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.contrib.humanize",
"django.contrib.sessions",
"django.contrib.messages",
"django.contrib.staticfiles",
"phonenumber_field",
] ]
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…
Cancel
Save