Source

gnocchi-ask / gnocchi / ask / urls.py

The default branch has multiple heads

from django.conf.urls.defaults import *

question_patterns = patterns('gnocchi.ask.views',
    url(r'^$', 'question_detail', name='question-detail'),
    url(r'^response/$', 'question_response', name='question-response'),
    url(r'^accept/(?P<response_id>\d+)/$', 'response_accept', name='response-accept'),
    url(r'^vote/(?P<response_id>\d+)/(?P<direction>up|down)/$', 'question_vote', name='question-vote'),
)

urlpatterns = patterns('gnocchi.ask.views',
    (r'^$', 'question_list'),
    url(r'^ask/$', 'question_ask', name='question-ask'),
    (r'^question/(?P<question_id>\d)/', include(question_patterns)),
)