summaryrefslogtreecommitdiff
path: root/website/urls.py
diff options
context:
space:
mode:
authorJayaram Pai2013-11-24 01:55:26 +0530
committerJayaram Pai2013-11-24 01:55:26 +0530
commit81a1802ae9bdd0aca461cbc38bb3bd7f934de8b3 (patch)
treed7390126bb94f775bd3119e66307d61b76353759 /website/urls.py
downloadspoken-tutorial-forums-81a1802ae9bdd0aca461cbc38bb3bd7f934de8b3.tar.gz
spoken-tutorial-forums-81a1802ae9bdd0aca461cbc38bb3bd7f934de8b3.tar.bz2
spoken-tutorial-forums-81a1802ae9bdd0aca461cbc38bb3bd7f934de8b3.zip
initial commit
Diffstat (limited to 'website/urls.py')
-rw-r--r--website/urls.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/website/urls.py b/website/urls.py
new file mode 100644
index 0000000..29c25ea
--- /dev/null
+++ b/website/urls.py
@@ -0,0 +1,9 @@
+from django.conf.urls import patterns, include, url
+
+urlpatterns = patterns('',
+ url(r'^$', 'website.views.home', name='home'),
+ url(r'^category/(?P<category>.+)/$', 'website.views.fetch_tutorials', name='fetch_tutorials'),
+ url(r'^tutorial/(?P<category>.+)/(?P<tutorial>.+)/$', 'website.views.fetch_posts', name='fetch_posts'),
+ url(r'^post/(?P<post_id>\d+)$', 'website.views.get_post', name='get_post'),
+ url(r'^new-post/$', 'website.views.new_post', name='new_post'),
+)