diff options
author | Jayaram Pai | 2013-12-01 20:50:56 +0530 |
---|---|---|
committer | Jayaram Pai | 2013-12-01 20:50:56 +0530 |
commit | 5e3c305f49becd0db41f63bc1c69b1a72c3119ea (patch) | |
tree | 572d50d199ce07073695c3eb2e2344b92e72bf2c /website/urls.py | |
parent | 8533d61eb93ecb4c943ec3c3b83dfef87b20a916 (diff) | |
download | FOSSEE-Forum-5e3c305f49becd0db41f63bc1c69b1a72c3119ea.tar.gz FOSSEE-Forum-5e3c305f49becd0db41f63bc1c69b1a72c3119ea.tar.bz2 FOSSEE-Forum-5e3c305f49becd0db41f63bc1c69b1a72c3119ea.zip |
basic filter structure, recent question display
Diffstat (limited to 'website/urls.py')
-rw-r--r-- | website/urls.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/website/urls.py b/website/urls.py index 9d1b048..bad4e34 100644 --- a/website/urls.py +++ b/website/urls.py @@ -2,9 +2,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_questions', name='fetch_questions'), - url(r'^question/(?P<question_id>\d+)$', 'website.views.get_question', name='get_question'), + url(r'^question/(?P<question_id>\d+)/$', 'website.views.get_question', name='get_question'), + url(r'^filter/(?P<category>[^/]+)/$', 'website.views.filter', name='filter'), + url(r'^filter/(?P<category>[^/]+)/(?P<tutorial>[^/]+)/$', 'website.views.filter', name='filter'), + url(r'^filter/(?P<category>[^/]+)/(?P<tutorial>[^/]+)/(?P<minute_range>[^/]+)/$', 'website.views.filter', name='filter'), + url(r'^filter/(?P<category>[^/]+)/(?P<tutorial>[^/]+)/(?P<minute_range>[^/]+)/(?P<second_range>[^/]+)/$', 'website.views.filter', name='filter'), url(r'^new-question/$', 'website.views.new_question', name='new_question'), # Ajax helpers |