19 lines
552 B
Python
Raw Normal View History

from django.conf.urls import patterns, include, url
2013-09-28 11:39:57 +02:00
from django.contrib import admin
2013-09-28 11:39:57 +02:00
admin.autodiscover()
2013-09-29 01:21:44 +02:00
urlpatterns = patterns(
'',
2013-09-28 12:43:57 +02:00
url(r'^accounts/', include('registration.backends.default.urls')),
url(r'^account/', include('nsupdate.accounts.urls')),
2013-09-28 11:39:57 +02:00
url(r'^admin/', include(admin.site.urls)),
url(r'^', include('nsupdate.main.urls')),
2013-09-28 11:39:57 +02:00
)
2013-09-28 11:39:57 +02:00
from django.conf import settings
2013-09-28 11:39:57 +02:00
if settings.DEBUG:
urlpatterns += patterns('django.contrib.staticfiles.views',
2013-09-29 01:21:44 +02:00
url(r'^static/(?P<path>.*)$', 'serve'), )