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 unsub
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 g
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 wrote:
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' % (mw_module, mw_classname)
>
> Imp
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 /etc/apache2/site-a
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"
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
> > place. I'm new at everything Linux.
>
> > But when I try
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 *guess
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 blog), Apache gives an
> Im
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
Py
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 message
l 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 python path to mysit
bject: 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 "['pa
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"
--~--~--
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
15 matches
Mail list logo