summaryrefslogtreecommitdiff
path: root/website/urls.py
diff options
context:
space:
mode:
authorashwinishinde2015-06-19 15:39:01 +0530
committerashwinishinde2015-06-19 15:39:01 +0530
commitbf20363adec8afed8d8e10ad7e0b641c51568cff (patch)
tree324a5ee334456c9ce602ee07aa43912ce5590adb /website/urls.py
parent23c44aa78fcf3c015dd4bcaf5b7e8a223e1b6950 (diff)
downloadFOSSEE-Forum-bf20363adec8afed8d8e10ad7e0b641c51568cff.tar.gz
FOSSEE-Forum-bf20363adec8afed8d8e10ad7e0b641c51568cff.tar.bz2
FOSSEE-Forum-bf20363adec8afed8d8e10ad7e0b641c51568cff.zip
Subject: Added Vote Functionality
Description: 1) Implementation of vote for question 2) Added CSS for vote-up and vope-down
Diffstat (limited to 'website/urls.py')
-rw-r--r--website/urls.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/website/urls.py b/website/urls.py
index 1c7d75e..71588af 100644
--- a/website/urls.py
+++ b/website/urls.py
@@ -1,4 +1,5 @@
from django.conf.urls import patterns, include, url
+from website import views
urlpatterns = patterns('',
url(r'^$', 'website.views.home', name='home'),
@@ -9,6 +10,7 @@ urlpatterns = patterns('',
url(r'^answer-comment/$', 'website.views.answer_comment', name='answer_comment'),
url(r'^filter/(?P<category>[^/]+)/$', 'website.views.filter', name='filter'),
url(r'^filter/(?P<category>[^/]+)/$', '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'),
@@ -18,7 +20,7 @@ urlpatterns = patterns('',
url(r'^clear-notifications/$', 'website.views.clear_notifications', name='clear_notifications'),
url(r'^search/$', 'website.views.search', name='search'),
url(r'^unanswered-notification/$', 'website.views.unanswered_notification', name='unanswered_notification'),
-
+ url(r'^vote_post/$', 'website.views.vote_post', name='vote_post'),
# Ajax helpers
url(r'^ajax-tutorials/$', 'website.views.ajax_tutorials', name='ajax_tutorials'),
url(r'^ajax-duration/$', 'website.views.ajax_duration', name='ajax_duration'),