Thanks in advance for your help
-----Original Message-----
From: Will Boyce <wrb...@gmail.com>
Sent: Sunday, April 6, 2008 3:23am
To: Django users <django...@googlegroups.com>
Subject: Re: Configure Mod_Python fo Django on Apache server on Ubuntu
Assuming your django project (mysite) is in /home/webmaster/
public_html/django/ then you'll want a trailing "/" in your
PythonPath.
Hope this helps.
usermod -a -G www-data webmastr
(I
am assuming webmastr is your linux login name here). This will let you
just give permissions to people in your group instead of everyone. Then
go back to /home/webmastr/ and type chmod 750 -r public_html
.
This will give your full read-write-executable access to the files (7),
your group including www-data read-execute permissions (5) and everyone
else no permissions (0).I've worked on putting Django on a Red Hat machine, and I've noticed
that the Ubuntu version of Apache is a bit different. But, in any
case, In my /etc/apache2 httpd.conf I have:
<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
PythonInterpreter mysite
<Location "/mysite/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE mysite.settings
PythonDebug On
PythonPath "['/home/webmastr/public_html/django']+sys.path"And that's it. Excluding the /media, it should still show something,
</Location>
I'd believe, or am I wrong?