Friday, March 21, 2014

Re: Django Tutorials: NoReverseMatch at /polls/1/vote/

On Thursday, 20 March 2014 23:07:47 UTC, wasingej wrote:
I am trying to create the project described by the Django Tutorials.  However, I have reached a problem that I am stuck on after implementing the voting forms described in tutorial 4 (https://docs.djangoproject.com/en/1.6/intro/tutorial04/).  When I run my website and go to the url:http://localhost:8000/polls/1/vote/, I am greeted with an exception:

NoReverseMatch at /polls/1/vote/
value: u'polls' is not a registered namespace

<snip>

It seems strange that 'polls' is not a registered namespace because it is the name of my django application.  Any ideas as to what I could be doing wrong here?

Are you sure you've followed the instructions at the end of the previous part?
https://docs.djangoproject.com/en/1.6/intro/tutorial03/#namespacing-url-names
--
DR. 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6074646b-f18c-4865-8314-eec8f1823be9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment