Upgrade Notes¶
This document contains upgrade notes for those already using DMP. We started the document at version 4.3.
5.10: | Significant refactoring of dmp-common.js to make webpack bundling work correctly. The file is now programmed in ES6, with babel being used to backport it. You can also import the file from the npm repository instead of including it normally. The only API change in the dmp-common file is tl;dr is none of this version’s changes should matter to you. |
||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5.9: | Refactored the providers based on feedback from users. This especially affects the The docs for the providers was fully rewritten to be more clear. |
||||||||||||||||||||||||||||||
5.8: | The changes you need to worry about:
The changes you probably don’t need to worry about:
|
||||||||||||||||||||||||||||||
5.7: | Changed autoescaping to be ON by default. This now matches Django’s default.
Read more ways to enable/disable autoescaping at Escaping Special Characters. If you would like things back to the old way, set autoescaping to False in your project settings file: TEMPLATES = [
{
'NAME': 'django_mako_plus',
'BACKEND': 'django_mako_plus.MakoTemplates',
'OPTIONS': {
# I liked things the old way...now quit messin' with 'em
'AUTOESCAPE': False,
...
}
}
]
As with the last change, apologies for backward-breaking changes. I decided to add this now since 5.6 just came out, and users can make the modifications for 5.6 and 5.7 together. |
||||||||||||||||||||||||||||||
5.6: |
# If you previously typed:
python manage.py dmp startapp homepage
# you now type:
python manage.py dmp_startapp homepage
|
||||||||||||||||||||||||||||||
5.5: |
This caused a few backwards-compatible changes. Do a search and replace for the following:
A new variable,
If you have custom URLs, you need to change
|
||||||||||||||||||||||||||||||
5.4: | The converters and If you were using custom converters and/or a custom view_function decorator, see the docs on parameter conversion. |
||||||||||||||||||||||||||||||
5.3: | The DMP management commands have been refactored. The sass cleanup command is removed. The remaining commands are now subcommands. If before you typed |
||||||||||||||||||||||||||||||
5.2: | I continued refactoring the webpack providers and workflow. While doing this, I updated how DMP calculates the If you are explicitly setting If you really need to set this, extend the |
||||||||||||||||||||||||||||||
5.1: | I refactored the webpack providers and workflow, but I doubt anyone is using them yet. If you happen to have jumped on this in the past three weeks that 5.0 was out, be sure to read the webpack page and change your settings appropriately. |
||||||||||||||||||||||||||||||
5.0: |
|
||||||||||||||||||||||||||||||
4.3: | tl;dr for existing projects:
We added provider classes, which creates a customizable system for linking static files. Default settings for the providers will handle everything for you, but note that you can add DMP now requires inclusion of dmp-common.js in your base template(s). This is included in the base template of new projects, but existing projects need to link to the file. See the installation guide for more info.
In similar fashion,
Compilation of Scss has been moved to a provider class, and a new provider for Less is now available. In fact, the |