Re: how can i find out that Development server is running or not?

2009-12-07 Thread Graham Dumpleton
On Dec 8, 9:45 am, Sameer Rahmani wrote: > i want to know just about development server . i mean i just want to know > when my code run under development server: The body of you post asked about both. :-) > if development_server: >       some code If this is for debugging

Re: how can i find out that Development server is running or not?

2009-12-07 Thread Sameer Rahmani
i want to know just about development server . i mean i just want to know when my code run under development server: if development_server: some code -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: how can i find out that Development server is running or not?

2009-12-07 Thread Graham Dumpleton
On Dec 7, 8:22 pm, Sameer Rahmani wrote: > hi > how can i find out that my project ran under apache or development server ? How are you running under Apache. Are you using mod_python, mod_wsgi, fastcgi, something else? One could try and look for the fingerprint of the

Re: how can i find out that Development server is running or not?

2009-12-07 Thread Tim Chase
> how can i find out that my project ran under apache or development server ? Though not 100% foolproof, I usually use from sys import argv if 'runserver' in argv: do_development_server_stuff() else: do_non_development_server_stuff() -tim -- You received this message

how can i find out that Development server is running or not?

2009-12-07 Thread Sameer Rahmani
hi how can i find out that my project ran under apache or development server ? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to