Anyway, you can find the location of your django project files with
the following (if this is what you really need):

import os
DIRNAME = os.path.dirname(__file__)

Good luck!
Aidas Bendoraitis [aka Archatas]

On 10/9/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> On Sun, 2006-10-08 at 12:58 -0700, MerMer wrote:
> > This is probably a daft question - but is there a way to find out what
> > my web root is when I'm using the Django development web server.
>
> Your question doesn't really make sense for the development server,
> since it only ever serves dynamic content.
>
> Every request to the development server is passed to your URL
> configuration (usually urls.py in your project directory) and further
> dispatched from there).
>
> Even the workaround in order to server static pages through the
> development server when one is testing things, as documented in [1], is
> done through passing off the request to a view. There is no concept in
> the Django development server of reading files directly from a file
> path.
>
> > With PHP you can see all your configuration settings easily using the
> > phpinfo() function, including all your web settings.  Is there an
> > equivalent for Django.
>
> urls.py and settings.py contain all the settings that are appropriate.
>
> Regards,
> Malcolm
>
>
>
> >
>

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

Reply via email to