aboutsummaryrefslogtreecommitdiffstats
path: root/demo/urls.py
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-04-18 21:18:50 +0800
committerWeitian LI <liweitianux@gmail.com>2014-04-18 21:18:50 +0800
commita4d102896cd261ced64316fce45dd264a797a903 (patch)
treef8a06526f5817b7e3f7b7a08de9434766c6b1a9a /demo/urls.py
parenta50364c081a5aa4857223474207c154cb82896ee (diff)
downloaddjango-skaschool-a4d102896cd261ced64316fce45dd264a797a903.tar.bz2
* updated settings.py, added settings_email.py
* created directories 'static' and 'templates' * added app 'account', 'notice' * added app 'demo'
Diffstat (limited to 'demo/urls.py')
-rw-r--r--demo/urls.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/demo/urls.py b/demo/urls.py
new file mode 100644
index 0000000..b45a57a
--- /dev/null
+++ b/demo/urls.py
@@ -0,0 +1,32 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.conf.urls import patterns, url
+
+from .views import HomePageView, FormHorizontalView, FormInlineView, PaginationView, FormWithFilesView, \
+ DefaultFormView
+
+# Uncomment the next two lines to enable the admin:
+# from django.contrib import admin
+# admin.autodiscover()
+
+# urlpatterns = patterns('',
+# # Examples:
+# # url(r'^$', 'demo.views.home', name='home'),
+# # url(r'^demo/', include('demo.foo.urls')),
+#
+# # Uncomment the admin/doc line below to enable admin documentation:
+# # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
+#
+# # Uncomment the next line to enable the admin:
+# # url(r'^admin/', include(admin.site.urls)),
+# )
+
+urlpatterns = patterns('',
+ url(r'^$', HomePageView.as_view(), name='home'),
+ url(r'^form$', DefaultFormView.as_view(), name='form_default'),
+ url(r'^form_horizontal$', FormHorizontalView.as_view(), name='form_horizontal'),
+ url(r'^form_inline$', FormInlineView.as_view(), name='form_inline'),
+ url(r'^pagination$', PaginationView.as_view(), name='pagination'),
+ url(r'^form_with_files$', FormWithFilesView.as_view(), name='form_with_files'),
+)