django - Cannot use overextends in Wagtail admin -
i try replace default logo , title in wagtail app. according http://docs.wagtail.io/en/v1.0b1/howto/custom_branding.html i've created templates/wagtailadmin/
, have installed django-overextends
, added overextends
project’s installed_apps object(base.py
).
as result error invalid block tag on line 1: 'overextends'. did forget register or load tag?
how can correctly load overextends
module make work? appreciated. in advance.
in django 1.9+, must add overextends builtins key of templates setting
templates = [ { 'backend': 'django.template.backends.django.djangotemplates', 'app_dirs': true, 'options': { 'builtins': ['overextends.templatetags.overextends_tags'], } }, ]
for extensions feature template tags, need load them in each template, e.g. {% load overextends_tags %}
, overextends different, , in earlier versions of django self-adds builtins, see https://github.com/stephenmcd/django-overextends/blob/master/overextends/models.py
note, wagtail 1.0 old version, , latest 1.5.2. wagtail 1.5.2 custom branding documentation detail above template configuration step.
update october 2016: wagtail past version 1.5. see @gasman's comment below more.
Comments
Post a Comment