diff options
author | Filipp Lepalaan <f@230.to> | 2014-02-20 12:44:49 +0200 |
---|---|---|
committer | Filipp Lepalaan <f@230.to> | 2014-02-20 12:44:49 +0200 |
commit | 3321241b61766045a68a3d607b67e11a95014e87 (patch) | |
tree | d13ce50a7c46f986f403733e9922e766665e7d2b /it | |
parent | 75ad7e4bd7d69243e7e5281c2642f00478fb072d (diff) | |
download | pudding-3321241b61766045a68a3d607b67e11a95014e87.tar.gz pudding-3321241b61766045a68a3d607b67e11a95014e87.tar.bz2 pudding-3321241b61766045a68a3d607b67e11a95014e87.zip |
Require logins, removed jquery UI
Diffstat (limited to 'it')
-rw-r--r-- | it/settings.py | 9 | ||||
-rw-r--r-- | it/urls.py | 7 |
2 files changed, 16 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('/')] @@ -25,4 +25,11 @@ urlpatterns = patterns('apps.it', url(r'^tags/$', 'views.tags', name='tags'), url(r'^tags/(\d+)/delete/$', 'views.delete_tag', name='delete_tag'), + + url(r'^users/$', 'views.users', name='users'), + + url(r'^docs/$', 'views.docs', name='docs'), + + url(r'^login/$', 'views.login', name='login'), + url(r'^logout/$', 'views.logout', name='logout'), ) |