Skip to content
Snippets Groups Projects
Commit 8e0827be authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Add maintenance mode. Closes #31.

parent 55f749fe
No related branches found
No related tags found
1 merge request!17Add maintenance mode. Closes #31.
......@@ -20,6 +20,7 @@ setup(
'django-leaflet',
'django-localflavor',
'django-tables2',
'maintenance_mode',
'geopy',
'latex',
'pexpect',
......
......@@ -29,6 +29,11 @@ DEBUG = False
ALLOWED_HOSTS = ['*']
# MAINTENANCE_MODE
MAINTENANCE_MODE = None
MAINTENANCE_MODE_IGNORE_ADMIN_SITE = True
MAINTENANCE_MODE_IGNORE_STAFF = True
# Application definition
INSTALLED_APPS = [
......@@ -45,6 +50,7 @@ INSTALLED_APPS = [
'django.contrib.staticfiles',
'django_tables2',
'django_cron',
'maintenance_mode',
'leaflet',
]
......@@ -57,6 +63,7 @@ MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'maintenance_mode.middleware.MaintenanceModeMiddleware',
]
CRON_CLASSES = [
......@@ -80,6 +87,7 @@ TEMPLATES = [
'django.contrib.messages.context_processors.messages',
'django.template.context_processors.request',
'ticdesk.contextprocessors.person_context',
'maintenance_mode.context_processors.maintenance_mode',
],
},
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment