summaryrefslogtreecommitdiff
path: root/django/archives/settings.py
diff options
context:
space:
mode:
authorMagnus Hagander2019-01-03 20:15:38 +0000
committerMagnus Hagander2019-01-04 11:24:06 +0000
commit3fb227230c145c828888aa2e7c5d8b9a8c0760a0 (patch)
tree2eeba42da158e6e00c06d537dc6da3a895e39b6c /django/archives/settings.py
parent1e173c362aa105ab4397fb77f8c693a1e01efa11 (diff)
Tabs to 4 spaces
pep8 standard for indentation
Diffstat (limited to 'django/archives/settings.py')
-rw-r--r--django/archives/settings.py58
1 files changed, 29 insertions, 29 deletions
diff --git a/django/archives/settings.py b/django/archives/settings.py
index 6a42a26..5d214d7 100644
--- a/django/archives/settings.py
+++ b/django/archives/settings.py
@@ -96,18 +96,18 @@ MIDDLEWARE_CLASSES = [
ROOT_URLCONF = 'archives.urls'
TEMPLATES = [{
- 'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'OPTIONS': {
- 'context_processors': [
- 'django.template.context_processors.request',
- 'django.contrib.messages.context_processors.messages',
- 'archives.util.PGWebContextProcessor',
- ],
- 'loaders': [
- 'django.template.loaders.filesystem.Loader',
- 'django.template.loaders.app_directories.Loader',
- ],
- },
+ 'BACKEND': 'django.template.backends.django.DjangoTemplates',
+ 'OPTIONS': {
+ 'context_processors': [
+ 'django.template.context_processors.request',
+ 'django.contrib.messages.context_processors.messages',
+ 'archives.util.PGWebContextProcessor',
+ ],
+ 'loaders': [
+ 'django.template.loaders.filesystem.Loader',
+ 'django.template.loaders.app_directories.Loader',
+ ],
+ },
}]
@@ -122,7 +122,7 @@ INSTALLED_APPS = [
# 'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
- 'archives.mailarchives',
+ 'archives.mailarchives',
]
# A sample logging configuration. The only tangible logging
@@ -159,23 +159,23 @@ API_CLIENTS = ('127.0.0.1',)
PUBLIC_ARCHIVES = False
try:
- from .settings_local import *
+ from .settings_local import *
except ImportError:
- pass
+ pass
# If this is a non-public site, enable middleware for handling logins etc
if not PUBLIC_ARCHIVES:
- MIDDLEWARE_CLASSES = [
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- ] + MIDDLEWARE_CLASSES
- MIDDLEWARE_CLASSES.append('archives.mailarchives.redirecthandler.RedirectMiddleware')
-
- INSTALLED_APPS = [
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- ] + INSTALLED_APPS
-
- from archives.util import validate_new_user
- PGAUTH_CREATEUSER_CALLBACK=validate_new_user
+ MIDDLEWARE_CLASSES = [
+ 'django.contrib.sessions.middleware.SessionMiddleware',
+ 'django.contrib.auth.middleware.AuthenticationMiddleware',
+ ] + MIDDLEWARE_CLASSES
+ MIDDLEWARE_CLASSES.append('archives.mailarchives.redirecthandler.RedirectMiddleware')
+
+ INSTALLED_APPS = [
+ 'django.contrib.auth',
+ 'django.contrib.contenttypes',
+ 'django.contrib.sessions',
+ ] + INSTALLED_APPS
+
+ from archives.util import validate_new_user
+ PGAUTH_CREATEUSER_CALLBACK=validate_new_user