On Wed, Feb 11, 2009 at 7:05 AM, rihad <ri...@mail.ru> wrote:

>
> http://docs.djangoproject.com/en/dev/intro/tutorial03/#intro-tutorial03
> The "Decoupling the URLconfs" section in the end says that moving
> mysite/urls.py to mysite/polls/urls.py and making the necessary
> changes decouples the polls app completely from the containing
> project. But it isn't so. urlpatterns = patterns
> ('mysite.polls.views', ... in mysite/polls/urls.py still refers to the
> "mysite" project, so I think the code in the tutorial should be
> changed to urlpatterns = patterns('polls.views', ... to decouple the
> app completely.
>
> >
>
This has been suggested many many times(check Trac), it's general consensus
is that while that's the correct way to do it in general, if the user
doesn't have their pythonpath setup correctly that step could lead to a lot
of cofusion.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

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