Hi all, I am using Django 1.2 to write the Django tutorial poll app. At the end of my *vote* view, I have the following line of code: * return HttpResponseRedirect(reverse(myproject.polls.views.results(args=(p.id,)))) *
When I navigate to http://127.0.0.1:8000/polls/1/vote/, I am able to vote, but during the redirect to the results page of that poll, I get an exception as follows: *"global name 'myproject' is not defined"* I discovered that I can get around this by importing my project, but somehow that feels wrong - and the tutorial explicitly says to use the full name of the view including the prefix as an argument to the reverse() function. What could be wrong? Thanks -- Regards, Sithembewena Lloyd Dube http://www.lloyddube.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.