On Sep 10, 6:19 pm, Rufman <[EMAIL PROTECTED]> wrote: > 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 *> > ServerNamewww.bridgeco.com > DocumentRoot D:/projects/pyOrganize/src/pyOrganize
You need to also add: <Directory D:/projects/pyOrganize/src/pyOrganize> Order deny,allow Allow from all </Directory> > Alias /media "D:/projects/pyOrganize/src/pyOrganize/media" This may need to be written as: Alias /media/ "D:/projects/pyOrganize/src/pyOrganize/media/" Ie., with trailing slashes. This all may or may not help, as using Location with mod_python where files also contained in underlying document root often gives trouble. Graham > <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 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 -~----------~----~----~----~------~----~------~--~---