I try to use django-filebrowser-no-grappelli with Django 1.5. The prodlem is: In Django 1.5 the template tags library adminmedia, which only contained the deprecated template tag {% admin_media_prefix %}, was removed. Django-filebrowser-no-grappelli use adminmedia in templates:
{% adminmedia %}
<link rel="stylesheet" type="text/css" href="{% custom_admin_media_prefix %}css/forms.css" />
How can I fix it? Thx!
Ok,
settings.py:
TEMPLATE_CONTEXT_PROCESSORS = (
.....
'django.core.context_processors.static',
)
Then change all {% adminmedia %}
on {% static %}
, {% custom_admin_media_prefix %}
on {{ STATIC_URL }}
.
Add quotes to all {% url 'someting' %}
(new syntax in 1.5). Maybe it's not absolutely correct, but it's working.
But, I can't add filebrowser to the TinyMCE :( Why?