On Tue, Mar 31, 2009 at 3:29 PM, Ross <scrodch...@yahoo.ca> wrote: > > Is there a means by which I can programmatically tell whether I'm > running behind apache + mod_python or the django dev server? > > I want to do something along the lines of > > if dev_server: > do this > elif apache_mod_python: > do this > > Thanks for any hints... > Ross. > > > > > Not that I can think of, your best bet is probably to have a CURRENT_ENVIRON settings or something that you just set locally to whatever the current evniroment is(there are tons of articles on doing local settings in Django).
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 -~----------~----~----~----~------~----~------~--~---