diff options
Diffstat (limited to 'django_skaschool/urls.py')
-rw-r--r-- | django_skaschool/urls.py | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/django_skaschool/urls.py b/django_skaschool/urls.py new file mode 100644 index 0000000..65b05c4 --- /dev/null +++ b/django_skaschool/urls.py @@ -0,0 +1,39 @@ +# -*- coding: utf-8 -*- + +from django.conf.urls import patterns, include, url +from django.conf import settings + +from django.contrib import admin +admin.autodiscover() + +from django.contrib.staticfiles.urls import staticfiles_urlpatterns +from django.views.generic.base import TemplateView + + +urlpatterns = patterns('', + # admin + url(r'^admin/', include(admin.site.urls)), + # index page + url(r'^$', TemplateView.as_view(template_name='index.html'), + name='index'), + # app 'page' + url(r'^page/', include('page.urls')), +) + +## django-registration +urlpatterns += patterns('', + # url(r'^accounts/', include('registration.backends.default.urls')), + url(r'^accounts/', include('account.urls')), +) + + +## demo +urlpatterns += patterns('', + url(r'^demo/', include('demo.urls')), +) + +## staticfiles +if settings.DEBUG: + urlpatterns += staticfiles_urlpatterns() + + |