Hi,
I started using the new `CachedStaticFilesStorage', great job.
Anyway, media defined in ModelAdmin must be wrapped with a call to the
`static()' function to be processed and get the md5 hash suffix :
from django.contrib.admin.templatetags.admin_static import static
class MyModelAdmin(admin.StackedInline):
model = MyModel
class Media:
css = {
"all": (static("css/my_css.css"),
static("css/admin_extra.css"))
}
I understand that one may not want to get the md5 version but this
workaround being not documented I wonder if this is the official way
to proceed.
Many thanks for this new feature,
Stan.
--
You received this message because you are subscribed to the Google Groups
"Django developers" 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-developers?hl=en.