@register.simple_tag<EOL>def wysiwyg_static_url(appname, prefix, default_path):
if appname in settings.INSTALLED_APPS:<EOL><INDENT>return urljoin(settings.STATIC_URL, prefix)<EOL><DEDENT>else:<EOL><INDENT>return default_path<EOL><DEDENT>
Automatically use an prefix if a given application is installed.
For example, if django-ckeditor is installed, use it's STATIC_URL/ckeditor folder to find the CKEditor distribution.
When the application does not available, fallback to the default path.

This is a function for the internal templates of *django-wysiwyg*.