The problem is in django/core/servers/basehttp.py - in class
AdminMediaHandler.  It hardcodes self.media_dir = django.__path__[0] +
'/contrib/admin/media' and ignores MEDIA_ROOT.

On Jan 19, 5:19 pm, "rsie" <[EMAIL PROTECTED]> wrote:
> I'm not sure what to do to get my templates to resolve the css file
> locations. My media files are located at:
> /home/rsie/projects/django_templates/media/css. I then set
> MEDIA_ROOT=/home/rsie/projects/django_templates
> and then defined <link href="/media/css/default.css" rel="stylesheet"
> type="text/css" /> in my template, but it can't locate the css file.
> Seems like this should be a no-brainer but I'm hitting my head against
> the wall trying to get this to work. Can anybody help?


--~--~---------~--~----~------------~-------~--~----~
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