Yes, that's just what `from django.contrib.admin.templatetags.adminmedia import admin_media_prefix` is doing (actual Django [code](https://github.com/django/django/blob/1.3.7/django/contrib/admin/templatetags/adminmedia.py)).