summaryrefslogtreecommitdiffstats
path: root/it/settings.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2014-02-20 12:44:49 +0200
committerFilipp Lepalaan <f@230.to>2014-02-20 12:44:49 +0200
commit3321241b61766045a68a3d607b67e11a95014e87 (patch)
treed13ce50a7c46f986f403733e9922e766665e7d2b /it/settings.py
parent75ad7e4bd7d69243e7e5281c2642f00478fb072d (diff)
downloadpudding-3321241b61766045a68a3d607b67e11a95014e87.tar.gz
pudding-3321241b61766045a68a3d607b67e11a95014e87.tar.bz2
pudding-3321241b61766045a68a3d607b67e11a95014e87.zip
Require logins, removed jquery UI
Diffstat (limited to 'it/settings.py')
-rw-r--r--it/settings.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/it/settings.py b/it/settings.py
index 5b348d7..3fe96a1 100644
--- a/it/settings.py
+++ b/it/settings.py
@@ -47,6 +47,7 @@ MIDDLEWARE_CLASSES = (
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
+ 'apps.it.login_required_middleware.LoginRequiredMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
@@ -89,3 +90,11 @@ TEMPLATE_LOADERS = (
)
MEDIA_ROOT = os.path.join(BASE_DIR, 'uploads')
+
+EXEMPT_URLS = []
+
+LOGIN_URL = '/login/'
+LOGOUT_URL = '/logout/'
+
+# URLs that should work without logging in
+LOGIN_EXEMPT_URLS = [LOGIN_URL.lstrip('/')]