On Sun, Oct 4, 2009 at 3:39 PM, Ross <ross.j...@gmail.com> wrote:

>
> I was going through the tutorial and following directions (I think)
> when it instructed me to decouple the url confs near the end of part 3
> of the Django Tutorial. After I did this, I was no longer able to
> reach the admin page. Now, whenever I try to reach the admin, I get
> this error message:
>
> TemplateSyntaxError at /admin/
>
> Caught an exception while rendering: Tried vote in module
> mysite.player_info.views. Error was: 'module' object has no attribute
> 'vote'
>
> which is weird since I am typing http://127.0.0.1:8000/admin/ as the
> url and this has nothing to do with the line:
>
> (r'^(?P<poll_id>\d+)/vote/$', 'vote'),
>
> in the urlconf.
>
> What might have happened?
>
>
Admin requires your entire URLConf be valid.  Fix the error noted in the
exception, and admin will work again.  The reason why Admin requires a fully
valid URLConf is because it generates links on its pages using reverse URL
mapping using the url template tag or the reverse utility function (
http://docs.djangoproject.com/en/dev/topics/http/urls/#reverse).  That
process iterates through the entire URLConf and any errors found will cause
it to fail.

Karen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to