Add app url namespacing to the common and main apps, fix missing namespace in the registration app, remove explict reverse_lazy for the LOGIN_URL and LOGIN_REDIRECT_URL these are expected to be views or URLs (failover)

This commit is contained in:
Roberto Rosario
2014-09-09 03:51:23 -04:00
parent 7dfacc624c
commit f5bef4b52d
11 changed files with 26 additions and 27 deletions

View File

@@ -140,8 +140,6 @@ USE_TZ = True
# Custom settings section
from django.core.urlresolvers import reverse_lazy
PROJECT_TITLE = 'Mayan EDMS'
PROJECT_NAME = 'mayan'
@@ -213,8 +211,8 @@ SENDFILE_BACKEND = 'sendfile.backends.simple'
# --------- Web theme ---------------
WEB_THEME_ENABLE_SCROLL_JS = False
# --------- Django -------------------
LOGIN_URL = reverse_lazy('login_view')
LOGIN_REDIRECT_URL = reverse_lazy('home')
LOGIN_URL = 'common:login_view'
LOGIN_REDIRECT_URL = 'main:home'
# -------- LoginRequiredMiddleware ----------
LOGIN_EXEMPT_URLS = (
r'^favicon\.ico$',