mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-05 13:14:46 +02:00

It's bad form to show the user a Page Not Found on the first site open, so we redirect to the default application. Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
22 lines
619 B
Python
22 lines
619 B
Python
# layerindex-web - URLs
|
|
#
|
|
# Based on the Django project template
|
|
#
|
|
# Copyright (c) Django Software Foundation and individual contributors.
|
|
# All rights reserved.
|
|
|
|
from django.conf.urls.defaults import patterns, include, url
|
|
from django.views.generic.simple import redirect_to
|
|
|
|
from django.contrib import admin
|
|
admin.autodiscover()
|
|
|
|
urlpatterns = patterns('',
|
|
url(r'^layerindex/', include('layerindex.urls')),
|
|
url(r'^admin/', include(admin.site.urls)),
|
|
url(r'^accounts/', include('registration.urls')),
|
|
url(r'^captcha/', include('captcha.urls')),
|
|
url(r'.*', redirect_to, {'url' : '/layerindex/'})
|
|
)
|
|
|