Hello,
just for the sake pay attention to the difference between "\" and "/".
If I remember well ONLY "/" will work.


yml

On Jul 27, 10:59 am, Graham Dumpleton <[EMAIL PROTECTED]>
wrote:
> On Jul 27, 6:31 pm, Graham Dumpleton <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > 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
>
> Whoops, missed the trailing slashes. Should be:
>
>   Alias /mainmedia/ C:/path/to/media/files/
>
> Grahamd
>
> > <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 django-users@googlegroups.com
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