I am going through the tutorial 3 for the SVN version:
http://www.djangoproject.com/documentation/tutorial03/

And everything works fine until I get to "Decoupling the URLconfs.
Here are what my urls.py files look like:

# Installation-specific urls.py
from django.conf.urls.defaults import *

urlpatterns = patterns('',
    (r'^admin/', include('django.contrib.admin.urls')),
    (r'^polls/', include('djangotut.polls.urls')),
)

# App-specific urls.py
from django.conf.urls.defaults import *

urlpatterns = patterns('djangotut.polls.views',
    (r'^$', 'index'),
    (r'^(?P<poll_id>\d+)/$', 'detail'),
    (r'^(?P<poll_id>\d+)/results/$', 'results'),
    (r'^(?P<poll_id>\d+)/vote/$', 'vote'),
)

==============

With that setup, http://127.0.0.1:8000/polls/ works fine, but
http://127.0.0.1:8000/admin/ gives me "ViewDoesNotExist at /admin/
Tried vote in module djangotut.polls.views. Error was: 'module' object
has no attribute 'vote'"

Removing the 'djangotut.polls.views' shortcut from the app-specific
urls.py file fixes this, but I'm pretty sure I'm following
instructions. Apparently there's something I don't understand about
how these shortcuts work when imported?

Thanks for your help.
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to