Revision 8b812637 snf-webproject/synnefo/webproject/urls.py

b/snf-webproject/synnefo/webproject/urls.py
38 38
from django.utils.importlib import import_module
39 39
from django.conf import settings
40 40

  
41
urlpatterns = patterns('',
41
urlpatterns = patterns('')
42

  
43
ROOT_REDIRECT = getattr(settings, 'WEBPROJECT_ROOT_REDIRECT', None)
44
if ROOT_REDIRECT:
45
    urlpatterns += patterns('django.views.generic.simple',
46
                            url(r'^$', 'redirect_to', {'url': ROOT_REDIRECT}))
47

  
48
urlpatterns += patterns('',
42 49
    (r'^lang/$', 'synnefo.webproject.i18n.set_language')
43 50
)
44 51

  

Also available in: Unified diff