FYI, my mysite/urls.py looks like this:
from django.conf.urls.defaults import *
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
(r'^league/', include('mysite.polls.urls')),
(r'^admin/', include(admin.site.urls)),
)
and the mysite/polls/urls.py looks like this:
from django.conf.urls.defaults import *
urlpatterns = patterns('mysite.player_info.views',
(r'^$', 'index'),
(r'^(?P<poll_id>\d+)/$', 'detail'),
(r'^(?P<poll_id>\d+)/results/$', 'results'),
(r'^(?P<poll_id>\d+)/vote/$', 'vote'),
)
When I comment out the (r'^league/', include('mysite.polls.urls')),
line in mysite/urls.py, I can get to the admin page. Otherwise I
can't. Does this provide more insight into my problem?
On Oct 4, 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 typinghttp://
127.0.0.1:8000/admin/as the