diff options
Diffstat (limited to 'django_skaschool/urls.py')
-rw-r--r-- | django_skaschool/urls.py | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/django_skaschool/urls.py b/django_skaschool/urls.py index f3ae807..770e524 100644 --- a/django_skaschool/urls.py +++ b/django_skaschool/urls.py @@ -1,12 +1,34 @@ +# -*- coding: utf-8 -*- + from django.conf.urls import patterns, include, url +from django.conf import settings from django.contrib import admin admin.autodiscover() -urlpatterns = patterns('', - # Examples: - # url(r'^$', 'django_skaschool.views.home', name='home'), - # url(r'^blog/', include('blog.urls')), +from django.contrib.staticfiles.urls import staticfiles_urlpatterns +from django.views.generic.base import TemplateView + +urlpatterns = patterns('', url(r'^admin/', include(admin.site.urls)), + url(r'^page/', include('page.urls')), + url(r'^$', TemplateView.as_view(template_name='index.html'), + name='index'), +) + +## demo +urlpatterns += patterns('', + url(r'^demo/', include('demo.urls')), ) + +## django-registration +urlpatterns += patterns('', + url(r'^accounts/', include('registration.backends.default.urls')), +) + +## staticfiles +if settings.DEBUG: + urlpatterns += staticfiles_urlpatterns() + + |