Ah, that sounds perfect -- thank you!
On Aug 21, 10:56 am, Warren <wsmith...@gmail.com> wrote: > On Aug 20, 6:15 am, Thomas Guettler <h...@tbz-pariv.de> wrote: > > > > > You could have a look at sys.argv > > That's what I do. It works great, though YMMV. > > Example: > > import sys > > DEVSERVER = "runserver" in sys.argv > > ... > > if DEVSERVER: > ... > else: > ... > > ... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---