layerindex-web/urls.py
Aníbal Limón b274a65f65 rrs: Frontend update to work with Python3 and django
[YOCTO #9746]

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
2016-06-23 10:04:53 -05:00

32 lines
936 B
Python

# layerindex-web - URLs
#
# Based on the Django project template
#
# Copyright (c) Django Software Foundation and individual contributors.
# All rights reserved.
import settings
from django.conf.urls import patterns, include, url
from django.views.generic import RedirectView
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
url(r'^admin/', include(admin.site.urls)),
url(r'^accounts/', include('registration.backends.default.urls')),
url(r'^captcha/', include('captcha.urls')),
)
if settings.APPLICATION == 'layerindex':
urlpatterns += patterns('',
url(r'^layerindex/', include('layerindex.urls')),
url(r'.*', RedirectView.as_view(url='/layerindex/', permanent=False)),
)
elif settings.APPLICATION == 'rrs':
urlpatterns += patterns('',
url(r'^rrs/', include('rrs.urls')),
url(r'.*', RedirectView.as_view(url='/rrs/', permanent=False)),
)