Tool: Pyflakes Processed Files: djblets/extensions/templatetags/djblets_extensions.py djblets/extensions/extension.py Tool: PEP8 Style Checker Processed Files: djblets/extensions/templatetags/djblets_extensions.py djblets/extensions/extension.py
Add a convenience function for getting static file URLs for extensions.
Review Request #7854 — Created Jan. 7, 2016 and submitted
Extension.get_static_url(), which takes a static media
file bundled with the extension and returns the URL for it. This is
equivalent to what the ext_static template tag does, and in fact that
template tag has been updated to use this. It's much easier now to
reference extension-provided static media files outside of templates.
Tested that templates were still able to reference the static files.
Made use of the new function in some of the new integrations work.