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 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 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: creating a list of sql that is executed

2009-08-06 Thread Stephen Moore
On Fri, Aug 7, 2009 at 2:56 AM, Shawn Milochik wrote: > > Look for the post_save signal. > > Once you can attach your own function to that signal (make it listen > for the signal and kick something off), you can probably have Django > dump the raw SQL query that is created to a text file. I don't

trouble with foreignkey and admin interface

2008-11-24 Thread Stephen Moore
Hello, I'm trying to create a model here for essentially recording the positions held by members in the committee of a university club I'm creating a website for. However, I'm new to django and am having some issues. So far, I have : A Committee model containing a year and a set of members (co

Re: everything works except apache seeing django app

2008-10-17 Thread Stephen Moore
for the record, I fixed the problem it seems the permissions have to be correct for every level of the directory. so for /home/iambo/web then /, /home, /home/iambob and /home/iambob/web had to have the right permissions :) thankyou for the help. ... :) --~--~-~--~~~--

Re: everything works except apache seeing django app

2008-10-16 Thread Stephen Moore
On Fri, Oct 17, 2008 at 1:04 AM, felix <[EMAIL PROTECTED]> wrote: > > is your app like this > > testSite > __init__.py >models.py >settings.py >etc. ? > > > ie. its not one folder deeper > > testSite > actualSite > __init__.py > models.py > settings.py

Re: everything works except apache seeing django app

2008-10-16 Thread Stephen Moore
On Thu, Oct 16, 2008 at 11:56 PM, bruno desthuilliers <[EMAIL PROTECTED]> wrote: > > On 16 oct, 16:58, "Stephen Moore" <[EMAIL PROTECTED]> wrote: >> On Thu, Oct 16, 2008 at 10:42 PM, felix <[EMAIL PROTECTED]> wrote: >> >> > possibly i

Re: everything works except apache seeing django app

2008-10-16 Thread Stephen Moore
On Thu, Oct 16, 2008 at 10:42 PM, felix <[EMAIL PROTECTED]> wrote: > > > possibly it may be on YOUR pythonpath but it won't be on apache's > pythonpath. > k then.. well I added PythonPath "['/home/iambob/web', '/home/iambob/web/testSite'] + sys.path" to my httpd.conf so the relevant section beco