[EMAIL PROTECTED] wrote:
I had the same problem. This is what worked for me.
Make a media directory somewhere for your project, like
/work/django/media/
add that directory to your apache conf, ie
<Directory "/work/django/media/">
#...
</Directory>
and add this line to your virtual host section
Alias /media/ "/work/django/media/"
Then you just have to copy your django/contrib/admin/media/ (wherever
it is) to /work/django/media/
Hope this works for you also.
Ryan
I think that this is a better solution:
ADMIN_MEDIA_PREFIX = '/admin-media/'
MEDIA_PREFIX = '/media/'
and in vhost configuration:
Alias /media/ "<path to your MEDIA_URL>"
Alias /admin-media/ "<django root>/django/contrib/admin/media/"
And you don't have to copy anything from django src.
--
Nebojša Đorđević - nesh
Studio Quattro - Niš - SCG
http://studioquattro.biz/forum/
http://djnesh-django.blogspot.com/ | http://djangoutils.python-hosting.com/
Registered Linux User 282159 [http://counter.li.org]