diff --git a/securityquiz/settings.py b/securityquiz/settings.py
index dbada92..d99a355 100644
--- a/securityquiz/settings.py
+++ b/securityquiz/settings.py
@@ -12,6 +12,7 @@ https://docs.djangoproject.com/en/1.6/ref/settings/
import os, secrets, sys
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
+CLOSED = False
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
@@ -100,3 +101,11 @@ TEMPLATE_DIRS = (
STATICFILES_DIRS = (
PROJECT_PATH + '/static',
)
+
+def closed(request):
+ return {'CLOSED': CLOSED}
+
+TEMPLATE_CONTEXT_PROCESSORS = (
+ 'django.contrib.auth.context_processors.auth',
+ 'securityquiz.settings.closed'
+)
diff --git a/templates/base.html b/templates/base.html
index e380b88..56ba5d1 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -33,7 +33,7 @@
Uitloggen
-
+ {% if CLOSED %}
Uitzendingen kunnen niet meer worden ingezonden{% else %}{% endif %}