im having problems serving media files in apache together with django.
Somehow Apache can't get the admin media files or my own (located at /
projectroot/media) for that matter.
my apache conf file:
<VirtualHost *>
ServerName www.bridgeco.com
DocumentRoot D:/projects/pyOrganize/src/pyOrganize
Alias /media "D:/projects/pyOrganize/src/pyOrganize/media"
<Location "/pyOrganize/">
SetHandler mod_python
PythonHandler django.core.handlers.modpython
PythonPath "['D:\\\\projects\\\\pyOrganize\\\\src'] + sys.path"
SetEnv DJANGO_SETTINGS_MODULE pyOrganize.settings
PythonDebug On
</Location>
<Location "/media">
SetHandler None
</Location>
<LocationMatch "\. (jpg|gif|png)$">
SetHandler None
</LocationMatch>
</VirtualHost>
my settings.py file:
MEDIA_ROOT = 'D:/projects/pyOrganize/src/pyOrganize/media/'
MEDIA_URL = ''
ADMIN_MEDIA_PREFIX = '/media/'
i made a symbolic link to the admin media files (link to django/
contrib/admin/media/)
thx for the help
stephane
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---