-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure CSRF as required by Django 4.2 (#211)
* set CSRF_TRUSTED_ORIGINS required by Django 4.2 * remove versioningit pin
- Loading branch information
Showing
6 changed files
with
8 additions
and
16 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
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
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
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 |
---|---|---|
|
@@ -34,7 +34,6 @@ def validate_ldap_settings(server_uri, user_dn_template): | |
|
||
|
||
DEBUG = environ.get("DEBUG", True) | ||
TEMPLATE_DEBUG = DEBUG | ||
|
||
ADMINS = ( | ||
# ('Your Name', '[email protected]'), | ||
|
@@ -98,15 +97,6 @@ def validate_ldap_settings(server_uri, user_dn_template): | |
# Make this unique, and don't share it with anybody. | ||
SECRET_KEY = "-0zoc$fl2fa&rmzeo#uh-qz-k+4^1)_9p1qwby1djzybqtl_nn" | ||
|
||
# ------- Template settings for Django 1.6 ------ | ||
TEMPLATE_LOADERS = ( | ||
"django.template.loaders.filesystem.Loader", | ||
"django.template.loaders.app_directories.Loader", | ||
# 'django.template.loaders.eggs.Loader', | ||
) | ||
TEMPLATE_DIRS = (BASE_DIR / "templates",) | ||
# ------ End of template settings for Django 1.6 ------ | ||
|
||
TEMPLATES = [ | ||
{ | ||
"BACKEND": "django.template.backends.django.DjangoTemplates", | ||
|
@@ -160,7 +150,7 @@ def validate_ldap_settings(server_uri, user_dn_template): | |
} | ||
} | ||
|
||
MIDDLEWARE_CLASSES = ( | ||
MIDDLEWARE = ( | ||
"django.middleware.common.CommonMiddleware", | ||
"django.contrib.sessions.middleware.SessionMiddleware", | ||
"django.middleware.csrf.CsrfViewMiddleware", | ||
|
@@ -170,7 +160,6 @@ def validate_ldap_settings(server_uri, user_dn_template): | |
# 'django.middleware.clickjacking.XFrameOptionsMiddleware', | ||
# 'debug_toolbar.middleware.DebugToolbarMiddleware', | ||
) | ||
MIDDLEWARE = MIDDLEWARE_CLASSES | ||
|
||
ROOT_URLCONF = "reporting.reporting_app.urls" | ||
|
||
|
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
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