diff options
Diffstat (limited to 'website/urls.py')
-rw-r--r-- | website/urls.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/website/urls.py b/website/urls.py index 29c25ea..9d1b048 100644 --- a/website/urls.py +++ b/website/urls.py @@ -3,7 +3,11 @@ 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'), + url(r'^tutorial/(?P<category>.+)/(?P<tutorial>.+)/$', 'website.views.fetch_questions', name='fetch_questions'), + url(r'^question/(?P<question_id>\d+)$', 'website.views.get_question', name='get_question'), + url(r'^new-question/$', 'website.views.new_question', name='new_question'), + + # Ajax helpers + url(r'^ajax-tutorials/$', 'website.views.ajax_tutorials', name='ajax_tutorials'), + url(r'^ajax-duration/$', 'website.views.ajax_duration', name='ajax_duration'), ) |