mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-30 19:44:48 +00:00
docs(django 1.9): Add upgrade consideration note for Jinja2 template tag location change
This commit is contained in:
parent
b5dc2696c4
commit
65f97bba6f
1 changed files with 26 additions and 0 deletions
|
|
@ -42,6 +42,32 @@ Bug fixes
|
|||
Upgrade considerations
|
||||
======================
|
||||
|
||||
Jinja2 template tag modules have changed location
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Due to a change in the way template tags are imported in Django 1.9, it has been necessary to move the Jinja2 template tag modules from "templatetags" to a new location, "jinja2tags". The correct configuration settings to enable Jinja2 templates are now as follows:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
TEMPLATES = [
|
||||
# ...
|
||||
{
|
||||
'BACKEND': 'django.template.backends.jinja2.Jinja2',
|
||||
'APP_DIRS': True,
|
||||
'OPTIONS': {
|
||||
'extensions': [
|
||||
'wagtail.wagtailcore.jinja2tags.core',
|
||||
'wagtail.wagtailadmin.jinja2tags.userbar',
|
||||
'wagtail.wagtailimages.jinja2tags.images',
|
||||
],
|
||||
},
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
See: :doc:`/advanced_topics/jinja2`
|
||||
|
||||
|
||||
ContentType-returning methods in wagtailcore are deprecated
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue