Sunday, April 3, 2011

Re: Confusion with ROOT_URLCONF

Well I'm guess you don't have to. Both ROOT_URLCONF = "foo.urls" and
ROOT_URLCONF = "urls" seem to work fine.

On Apr 3, 8:11 am, Roy Smith <r...@panix.com> wrote:
> I don't understand how ROOT_URLCONF is declared in settings.py.  If I
> put all my apps (and my settings.py file) in a directory "foo", I'm
> supposed to do:
>
> ROOT_URLCONF = "foo.urls"
>
> This seems counter-intuitive to me.  When I run my app (by running
> "python manage.py runserver"), I'm already in the "foo" directory.
> From there, shouldn't you just need to do "import urls", not "import
> foo.urls"?  Is the server doing a "cd .." at some point before it
> starts running my code?

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment