Re: FIXED: Can't run django on Apache

2009-03-18 Thread Bro
What's the best way to do it ? I don't understand the official tutorial --~--~-~--~~~---~--~~ 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

Re: FIXED: Can't run django on Apache

2009-03-18 Thread Bro
Thanks Graham !! It works perfectly, you own :) Bro --~--~-~--~~~---~--~~ 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

Re: FIXED: Can't run django on Apache

2009-03-17 Thread Graham Dumpleton
Either way, their dango.root setting is wrong as they are setting it to physical file system path. Remove that whole django.root setting as you do not need it when mounting at root of site. The sooner people stop using mod_python the better. ;-) Graham On Mar 18, 12:41 pm, Karen Tracey

Re: FIXED: Can't run django on Apache

2009-03-17 Thread Karen Tracey
On Tue, Mar 17, 2009 at 1:54 PM, Bro wrote: > > [snip] > File "/var/lib/python-support/python2.5/django/core/handlers/ > base.py", line 44, in load_middleware >raise exceptions.ImproperlyConfigured, 'Middleware module "%s" > does not define a "%s" class' %

Re: FIXED: Can't run django on Apache

2009-03-17 Thread Bro
Hi I've installed Django 1.02 on my dedibox. I'm trying to make .py file readable and executable. Apache, Python, Django are installed. We have many website : /var/www/mysite1 /var/www/mysite2 /var/www/mysite3 we have : /var/django/mysite1 /var/django/mysite2 We configure in

Re: FIXED: Can't run django on Apache

2009-03-17 Thread Bro
The result is : SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonOption django.root /home/rex/django/mturk PythonDebug On PythonPath "['/home/rex/django/'] + sys.path"

FIXED: Can't run django on Apache

2009-03-15 Thread Rex
On Mar 14, 7:52 pm, Rex wrote: > On Mar 4, 12:47 pm, John Maines wrote: > > > > > Hello: > > > I've installed Django 1.0 on Ubuntu and am trying to get it to run on > >Apache.Apacheis installed, working fine, with mod-python also in > >

Re: Can't run django on Apache

2009-03-14 Thread Malcolm Tredinnick
On Sat, 2009-03-14 at 19:52 -0700, Rex wrote: [...] > > SetHandler python-program > PythonHandler django.core.handlers.modpython > SetEnv DJANGO_SETTINGS_MODULE mysite.settings > PythonOption django.root /home/rex/django/mturk *sigh* Will people please stop

Re: Can't run django on Apache

2009-03-14 Thread Rex
On Mar 4, 12:47 pm, John Maines wrote: > Hello: > > I've installed Django 1.0 on Ubuntu and am trying to get it to run on > Apache. Apache is installed, working fine, with mod-python also in > place. I'm new at everything Linux. > > But when I try to run my app (a test

Re: Can't run django on Apache

2009-03-10 Thread jai
just put this line in (/etc/apache2/sites-enabled/000-default) SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE mysite.settings PythonInterpreter mysite

Re: Can't run django on Apache

2009-03-06 Thread xankya
One thing I noticed in my windows and sun solaris is that, there is no trailing slash in python paths. When I added trailing slash, apache showed error. So you might as well try removing trailing slash in python paths. --~--~-~--~~~---~--~~ You received this

Re: Can't run django on Apache

2009-03-04 Thread Danny Brown
- John > > -Original Message- > From: django-users@googlegroups.com > [mailto:django-us...@googlegroups.com]on Behalf Of xankya > Sent: Wednesday, March 04, 2009 4:28 PM > To: Django users > Subject: Re: Can't run django on Apache > > > > I guess u need to set py

RE: Can't run django on Apache

2009-03-04 Thread Maines, John
: Re: Can't run django on Apache I guess u need to set python path to mysite plus django folders In httpd.conf: SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE settings PythonDebug On PythonPath "['path to mysite',

Re: Can't run django on Apache

2009-03-04 Thread xankya
I guess u need to set python path to mysite plus django folders In httpd.conf: SetHandler python-program PythonHandler django.core.handlers.modpython SetEnv DJANGO_SETTINGS_MODULE settings PythonDebug On PythonPath "['path to mysite', 'path to django'] + sys.path"

Can't run django on Apache

2009-03-04 Thread John Maines
Hello: I've installed Django 1.0 on Ubuntu and am trying to get it to run on Apache. Apache is installed, working fine, with mod-python also in place. I'm new at everything Linux. But when I try to run my app (a test blog), Apache gives an ImportError message (below) I have come across NUMEROUS