On Thursday 18 March 2010 12:38:36 Logan Bailey wrote: > I'm running Django w/ apache wsgi. > > The admin css files are not showing up for my admin panel. > > On my first attempt apache was served the error: File does not exist: / > home/baileylo/django/gallery/media/css, referer: http://website.com/admin/ > I created the css folder, and got the following error: > File does not exist: /home/baileylo/django/gallery/media/css/ > dashboard.css, referer: http://website.com/admin/ > > I then copy and pasted the file to dashboard.css and it loaded fine. > > setup.py > MEDIA_ROOT = '/home/baileylo/django/gallery/' > MEDIA_URL = 'website.com/media/' > ADMIN_MEDIA_PREFIX = '/media/' > > > apache.conf > Alias /media "/home/baileylo/django/gallery/media" > <Directory /home/baileylo/django/gallery/media> > Order deny,allow > Allow from all > </Directory> > WSGIScriptAlias / /home/baileylo/django/gallery/apache/django.wsgi > > > > > Why is this happening? I did a locate and found the css files on my > computer. >
Try these settings: MEDIA_ROOT = <whatever is the absolute path to your media folder> MEDIA_URL = '/media/' ADMIN_MEDIA_PREFIX = '/media/admin/' And then create a symlink to admin media from your media directory: media $ ln -s /path/to/django/contrib/admin/media admin This setup works fine for me. If you don't want a symlink you need to serve admin media manually. I think the confusion is caused by the fact that dev server hooks admin media for you automatically (but not your project's media). -- Saygılarımla, Atamert Ölçgen -+- --+ +++ www.muhuk.com [email protected] -- 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.

