2013-09-28 10:44:29 +02:00
|
|
|
from django.conf.urls import patterns, include, url
|
2013-09-28 11:39:57 +02:00
|
|
|
from django.contrib import admin
|
2013-10-03 19:26:39 +02:00
|
|
|
|
2013-09-28 11:39:57 +02:00
|
|
|
admin.autodiscover()
|
2013-09-28 10:44:29 +02:00
|
|
|
|
2013-09-29 01:21:44 +02:00
|
|
|
urlpatterns = patterns(
|
|
|
|
'',
|
2013-11-02 05:15:06 +01:00
|
|
|
url('', include('social.apps.django_app.urls', namespace='social')),
|
2013-09-28 12:43:57 +02:00
|
|
|
url(r'^accounts/', include('registration.backends.default.urls')),
|
2013-10-17 20:50:44 +00:00
|
|
|
url(r'^account/', include('nsupdate.accounts.urls')),
|
2013-09-28 11:39:57 +02:00
|
|
|
url(r'^admin/', include(admin.site.urls)),
|
2013-10-17 20:50:44 +00:00
|
|
|
url(r'^', include('nsupdate.main.urls')),
|
2013-09-28 11:39:57 +02:00
|
|
|
)
|
2013-09-28 10:44:29 +02:00
|
|
|
|
2013-09-28 11:39:57 +02:00
|
|
|
from django.conf import settings
|
2013-09-28 10:44:29 +02:00
|
|
|
|
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'), )
|