I'm trying to find an easy way to check what the current runtime
environment is.  I deploy to mod_python, but do development
against runserver.  I'd like my settings.py file to tweak the
media settings based on whether I'm using mod_python (in which
case, it should use the ones I have working there) or if I'm
running the development server (in which case I want it to point
to my local repository's media directory).

Is there an easy way to adjust the media location based on the
server environment?

Thanks,

-tkc






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