class Media:
Undocumented
Static Method | merge |
Merge lists while trying to keep the relative order of the elements. Warn if the lists have the same elements in a different relative order. |
Method | __add__ |
Undocumented |
Method | __getitem__ |
Return a Media object that only contains media of the given type. |
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
Method | absolute_path |
Given a relative or absolute path to a static asset, return an absolute path. An absolute path will be returned unchanged while a relative path will be passed to django.templatetags.static.static(). |
Method | render |
Undocumented |
Method | render_css |
Undocumented |
Method | render_js |
Undocumented |
Instance Variable | _css_lists |
Undocumented |
Instance Variable | _js_lists |
Undocumented |
Property | _css |
Undocumented |
Property | _js |
Undocumented |
Merge lists while trying to keep the relative order of the elements. Warn if the lists have the same elements in a different relative order.
For static assets it can be important to have them included in the DOM in a certain order. In JavaScript you may not be able to reference a global or in CSS you might want to override a style.