Re: apache gets confused with difference between dev and production version of site

2009-11-03 Thread Stephen Moore
well, my solution wasn't working still... so more research has finally led me to the real problem. http://docs.djangoproject.com/en/dev/howto/deployment/modpython/ I had the PythonInterpreter setting in the apache configurations to the same value. Changing it to a different value for the produc

Re: apache gets confused with difference between dev and production version of site

2009-11-02 Thread delfick755
On Nov 3, 3:00 pm, Graham Dumpleton wrote: > On Nov 3, 5:55 pm, Stephen Moore wrote: > All I can suggest is get rid of mod_python. It is a fair bit simpler > in mod_wsgi to do these sorts of per setup overrides because the WSGI > script file acts as an intermediary from which overrides can be

Re: apache gets confused with difference between dev and production version of site

2009-11-02 Thread Graham Dumpleton
On Nov 3, 5:55 pm, Stephen Moore wrote: > On Tue, Nov 3, 2009 at 2:31 PM, Graham Dumpleton > > wrote: > > Cant you just have different settings files and set > > DJANGO_SETTINGS_MODULES different for each installation? > > The problem with that becomes let's say I have the two options > produc

Re: apache gets confused with difference between dev and production version of site

2009-11-02 Thread Stephen Moore
On Tue, Nov 3, 2009 at 2:31 PM, Graham Dumpleton wrote: > Cant you just have different settings files and set > DJANGO_SETTINGS_MODULES different for each installation? > The problem with that becomes let's say I have the two options production and internet, then that means that I have to have 4

Re: apache gets confused with difference between dev and production version of site

2009-11-02 Thread Graham Dumpleton
On Nov 3, 4:49 pm, Stephen Moore wrote: > On Tue, Nov 3, 2009 at 1:31 PM, Graham Dumpleton > > wrote: > >http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Application_E... > > > You are experiencing environment variable leakage between Python sub > > interpreters. Affects mod_wsgi as wel

Re: apache gets confused with difference between dev and production version of site

2009-11-02 Thread Stephen Moore
On Tue, Nov 3, 2009 at 1:31 PM, Graham Dumpleton wrote: > http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Application_Environment_Variables > > You are experiencing environment variable leakage between Python sub > interpreters. Affects mod_wsgi as well as mod_python, or any embedded > so

Re: apache gets confused with difference between dev and production version of site

2009-11-02 Thread Graham Dumpleton
Arrgh, pressed send to quick. Read: http://code.google.com/p/modwsgi/wiki/ApplicationIssues#Application_Environment_Variables You are experiencing environment variable leakage between Python sub interpreters. Affects mod_wsgi as well as mod_python, or any embedded solution using multiple Python

Re: apache gets confused with difference between dev and production version of site

2009-11-02 Thread Graham Dumpleton
Sorry, I should just follow your pastebin links shouldn't I. :-) On Nov 3, 4:21 pm, Graham Dumpleton wrote: > Which of the many ways of hosting under Apache are you using? > > mod_python? mod_wsgi? mod_fcgid? mod_fastcgi? mod_cgi(d)? mod_scgi? > other? > > SetEnv does not set os.environ in a num

Re: apache gets confused with difference between dev and production version of site

2009-11-02 Thread Graham Dumpleton
Which of the many ways of hosting under Apache are you using? mod_python? mod_wsgi? mod_fcgid? mod_fastcgi? mod_cgi(d)? mod_scgi? other? SetEnv does not set os.environ in a number of these. Graham On Nov 3, 4:14 pm, delfick755 wrote: > Hello, > > I have a setup where a django's debug setting

apache gets confused with difference between dev and production version of site

2009-11-02 Thread delfick755
Hello, I have a setup where a django's debug setting is changed depending on whether os.environ['PRODUCTION'] is true or false. Which means when I setup apache, I do "SetEnv PRODUCTION true" to mark a site as production. I then have /etc/hosts setup so that http://home and http://cec point to l