I'm new to Django and working my way through the tutorials.  At the
end of Tutorial 3 there is an explanation about how to copy the
urls.py file to the polls directory and replace the urls in the site
directory with an include.  What confuses me about this is that I
still must reference my application urls with the mysite designation.
If this application is decoupled and I move it into another site
called foo, will I not need to change my patterns statement from
'mysite.polls.views' to 'foo.polls.views'?  Here is the current code
in polls/urls.py

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

Thanks,

Michael


--~--~---------~--~----~------------~-------~--~----~
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