I'm struggling to find where the error is in my urlconf. When that
line I referenced previously is uncommented, I am able to get to the
other pages for which I have made views (which is just the home page
at the moment), but I can't access the admin. Could the problem be
that I have not written views for everything that the urlconf
references? Because I'm struggling to find an error in any of my
syntax in the urlconfs.

On Oct 4, 8:51 pm, Karen Tracey <[email protected]> wrote:
> On Sun, Oct 4, 2009 at 3:39 PM, Ross <[email protected]> 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 typinghttp://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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to