Hello.
Henry wrote:
> I had a problem with CSS cause while the admin_media_prefix template
> tag used the ADMIN_MEDIA_PREFIX setting, it did not prepend the
> MEDIA_URL to it. I have all my static stuff, including CSS, on a
> separate site so I was getting the admin interface without the good
> looks.
>
> Either I did something wrong, or admin_media_prefix() in
> contrib/admin/templatetags/adminmedia.py needs to have:
> return settings.MEDIA_URL + settings.ADMIN_MEDIA_PREFIX
> instead of
> return settings.ADMIN_MEDIA_PREFIX
As far as I can tell, django expects ADMIN_MEDIA_PREFIX to be an
absolute url. Maybe you could file a ticket?
BTW, a much better way to join urls would be:
from urlparse import urljoin
return urljoin(settings.MEDIA_URL, settings.ADMIN_MEDIA_PREFIX)
--
Matias Hermanrud Fjeld
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~--~~~~--~~--~--~---