On Jul 22, 2008, at 7:07 AM, Matt wrote:

> Apache obviously isn't forwarding the request to the PythonHandler,
> but I don't know why.

I am not an expert at this but I am willing to share has worked here...

When setting up Django, I did not have much luck with the Location  
directive. I would like to learn more about how to use this directive  
effectively.

I found joy using a combination of the Alias and Directory directives.  
Here is an example based on a set up for CentOS 4. I tore down the Mac  
OS X install a while back but I suspect this would work as well. I use  
"usr/local" in the example only; on a production server you would want  
to choose a more appropriate place in the file system.

Alias /mysite /usr/local/mysite_dir

<Directory "/usr/local/mysite_dir/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE settings
PythonDebug On
PythonAutoReload On
Options None
AllowOverride All
order deny,allow
deny from all
allow from all
</Directory>

I am have a working draft of instructions for setting up Django on SME  
7.3 that covers a few more things. Perhaps you might find a useful  
tidbit there: <http://www.mophilly.com/wiki/How_to_install_Django_on_SME_Server 
 >

hth,

Mark Phillips
Mophilly, technology for creative business

On the web at http://www.mophilly.com
On the phone at 619 444-9210





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to