On Jul 27, 4:09 pm, devjim <[EMAIL PROTECTED]> wrote:
> Mod_python is working and I have this in my http.conf
> <Location "/testproj/">
> SetHandler python-program
> PythonHandler django.core.handlers.modpython
> SetEnv DJANGO_SETTINGS_MODULE testproj.settings
> PythonDebug On
> PythonPath "['c:\\\\dev\\\\testproj'] + sys.path"
> </Location>
> <Location "mainmedia">
> SetHandler None
> </Location>
Instead of Location directive for media files, you should have Alias
directive and Directory for actual physical directory the files are
located in. For example something like:
Alias /mainmedia C:/path/to/media/files
<Directory C:/path/to/media/files>
Order deny,allow
Allow from all
</Directory>
<Location "/testproj/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE testproj.settings
PythonDebug On
PythonPath "['c:\\\\dev\\\\testproj'] + sys.path"
</Location>
The Location directive will not work for media files as it is for
virtual resources, whereas Alias maps it to physical resources.
Graham
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---