app_settings: move the favicon URL setting there
This commit is contained in:
parent
48ab6cc0c4
commit
977c855147
|
@ -1,3 +1,4 @@
|
|||
from django.conf import settings
|
||||
|
||||
TEMPLATE_VARS = getattr(settings, 'PORTAIL_CITOYEN_TEMPLATE_VARS', {})
|
||||
FAVICON_URL = getattr(settings, 'PORTAIL_CITOYEN_FAVICON_URL', 'http://www.entrouvert.com/favicon.ico')
|
||||
|
|
|
@ -10,6 +10,9 @@ admin.autodiscover()
|
|||
from authentic2.urls import not_homepage_patterns
|
||||
|
||||
|
||||
from . import app_settings
|
||||
|
||||
|
||||
urlpatterns = i18n_patterns('',
|
||||
url(r'^admin/', include(admin.site.urls)),
|
||||
url(r'^admin_tools/', include('admin_tools.urls')),
|
||||
|
@ -20,7 +23,7 @@ urlpatterns = i18n_patterns('',
|
|||
|
||||
|
||||
urlpatterns += patterns('',
|
||||
(r'^favicon\.ico$', RedirectView.as_view(url=settings.PORTAIL_CITOYEN_FAVICON_URL)),
|
||||
(r'^favicon\.ico$', RedirectView.as_view(url=app_settings.FAVICON_URL)),
|
||||
url(r'^', include(not_homepage_patterns)),
|
||||
url(r'^su/(?P<username>.*)/$', 'authentic2.views.su', {'redirect_url': '/'}),
|
||||
)
|
||||
|
|
Reference in New Issue