-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused django.contrib admin, auth, sessions and messages middl…
…eware
- Loading branch information
1 parent
86480ae
commit 01a1f64
Showing
2 changed files
with
0 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,9 +47,6 @@ | |
# # and the option to Preserve the Host are set by your proxy. | ||
DJANGO_IS_PROXIED = get_boolean_env("DJANGO_IS_PROXIED", False) | ||
ALLOWED_HOSTS = split_csv_trim(getenv("ALLOWED_HOSTS", ".internet.nl, internet.nl")) | ||
ADMIN_NAME = getenv("ADMIN_NAME", "Administrator") | ||
ADMIN_EMAIL = getenv("ADMIN_EMAIL", "Administrator") | ||
SERVER_EMAIL = getenv("SERVER_EMAIL", "[email protected]") | ||
INTERNAL_IPS = split_csv_trim(getenv("INTERNAL_IPS", "")) | ||
TIME_ZONE = getenv("TIME_ZONE", "UTC") | ||
|
||
|
@@ -135,11 +132,7 @@ | |
ALLOWED_HOSTS = ALLOWED_HOSTS + [IPV6_TEST_ADDR, f"[{IPV6_TEST_ADDR}]"] | ||
|
||
INSTALLED_APPS = [ | ||
"django.contrib.admin", | ||
"django.contrib.auth", | ||
"django.contrib.contenttypes", | ||
"django.contrib.sessions", | ||
"django.contrib.messages", | ||
"django.contrib.staticfiles", | ||
"django_bleach", | ||
"markdown_deux", | ||
|
@@ -156,13 +149,11 @@ | |
"APP_DIRS": True, | ||
"OPTIONS": { | ||
"context_processors": [ | ||
"django.contrib.auth.context_processors.auth", | ||
"django.template.context_processors.debug", | ||
"django.template.context_processors.i18n", | ||
"django.template.context_processors.media", | ||
"django.template.context_processors.static", | ||
"django.template.context_processors.tz", | ||
"django.contrib.messages.context_processors.messages", | ||
"django.template.context_processors.request", | ||
], | ||
"libraries": {"translate": "interface.templatetags.translate"}, | ||
|
@@ -178,15 +169,10 @@ | |
"django_statsd.middleware.GraphiteRequestTimingMiddleware", | ||
"django_statsd.middleware.GraphiteMiddleware", | ||
"django_hosts.middleware.HostsRequestMiddleware", | ||
"django.contrib.sessions.middleware.SessionMiddleware", | ||
"django.middleware.common.CommonMiddleware", | ||
"django.contrib.auth.middleware.AuthenticationMiddleware", | ||
"django.contrib.messages.middleware.MessageMiddleware", | ||
"django_hosts.middleware.HostsResponseMiddleware", | ||
"internetnl.custom_middlewares.ActivateTranslationMiddleware", | ||
] | ||
|
||
ADMINS = ((ADMIN_NAME, ADMIN_EMAIL),) | ||
ROOT_URLCONF = "internetnl.urls" | ||
ROOT_HOSTCONF = "internetnl.hosts" | ||
DEFAULT_HOST = "www" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters