Re: url pattern matching
Thanks Larry,
This is what my urls.py file looks like:
from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('paperforms.views',
'IS THIS THE LINE I SHOULD MODIFY?
url(r'^paperforms/$', 'index'),
url(r'^paperforms/(?P<checkrequest_id>\d+)/$', 'detail'),
url(r'^paperforms/(?P<checkrequest_id>\d+)/results/$', 'results'),
url(r'^paperforms/(?P<checkrequest_id>\d+)/vote/$', 'vote'),
)
urlpatterns += patterns('',
url(r'^admin/', include(admin.site.urls)),
) --
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/tsyayyD7T1UJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home