Source

django-ajax-poll / poll / urls.py

1
2
3
4
5
6
7
from django.conf.urls.defaults import * 
urlpatterns = patterns('gpoll', 
    url(r'^/?$', 'poll.views.default', name='default'),
    url(r'^submit/(?P<poll_id>[-\d]+)/(?P<answer_id>[-\d]+)/?$', 'poll.views.submit', name='poll-ajax-submit'),
	#poll export data
	url(r'^export-data/(?P<object_id>[-\d]+)?$', 'poll.views.export_answers', name="poll_export_answers"),
)