sandro.dentella wrote:
> Hi all,
>
> how can I test from within settings.py if I'm running via mod_python
> or in standalone way? I need to set a variable, accordingly.
You could use something like:
in_mod_python = False
try:
from mod_python import apache
in_mod_python = True
e
sandro.dentella wrote:
> Hi all,
>
> how can I test from within settings.py if I'm running via mod_python
> or in standalone way? I need to set a variable, accordingly.
>
what do you mean by "standalone"?
using the development server?
btw. wouldn't the DEBUG variable help you?
simply set i
sandro.dentella wrote:
> Hi all,
>
> how can I test from within settings.py if I'm running via mod_python
> or in standalone way? I need to set a variable, accordingly.
You could import os and look in os.environ for differences. Maybe
somthing differs.
--
Christian Joergensen | Linux, progra
Hi all,
how can I test from within settings.py if I'm running via mod_python
or in standalone way? I need to set a variable, accordingly.
TIA
sandro
*:-)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django
4 matches
Mail list logo