From 73bd5bed9902accaa690001518ad5955a663bb1c Mon Sep 17 00:00:00 2001 From: "Tomas \"Jethro\" Pokorny" Date: Thu, 24 Dec 2015 15:51:32 +0100 Subject: [PATCH] Spravne presmerovani, kdyz view vyzaduje login. --- mamweb/settings_common.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mamweb/settings_common.py b/mamweb/settings_common.py index fca54e9d..3b222eb5 100644 --- a/mamweb/settings_common.py +++ b/mamweb/settings_common.py @@ -42,6 +42,9 @@ STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', ) +# Where redirect for login required services +LOGIN_URL = '/admin/login' + # Modules configuration AUTHENTICATION_BACKENDS = (