Fix extensions support on Django 1.7+.
Review Request #7420 — Created June 13, 2015 and submitted
This fixes the extension cache clearing and other compatibility issues hit with newer versions of Django. We were using some private APIs in earlier versions of Django, which have been replaced (largely by proper APIs) in newer versions of Django. The old template loader has been marked deprecated, and will be removed in a future release. The loader will now show a warning when in use. Documentation has been added to cover this.
Related unit tests pass on Django 1.6 and 1.8.
- Change Summary:
-
- Added a compatibility function to unbreak consumers of the old loader, with a deprecation warning.
- Added documentation.
- Description:
-
This fixes the extension cache clearing and other compatibility issues
hit with newer versions of Django. We were using some private APIs in earlier versions of Django, which have been replaced (largely by proper APIs) in newer versions of Django. ~ There is one change that introduces a backwards-compatibility issue,
~ which is that the old template loader has been rewritten to be a modern ~ Django template laoder class. The old function-style loaders have been ~ The old template loader has been marked deprecated, and will be removed
~ in a future release. The loader will now show a warning when in use. ~ Documentation has been added to cover this. - deprecated for a little while, and we were overdue for fixing this. - Applications will need to update accordingly. - Commit:
-
09c4a8832aae0ac09268b42d3662d307a5f89f5916caa8f5b01f19ade984d99bde40eebf54143b54
-
Tool: Pyflakes Processed Files: djblets/extensions/loaders.py djblets/extensions/manager.py Tool: PEP8 Style Checker Processed Files: djblets/extensions/loaders.py djblets/extensions/manager.py
- Change Summary:
-
Now uses the new base loader for templates, if available. The original one, which is supposed to be backwards-compatible, breaks on 1.8.
- Commit:
-
16caa8f5b01f19ade984d99bde40eebf54143b5412c40d2cc87b4682a92712f8012d28060557e07f
-
Tool: Pyflakes Processed Files: djblets/extensions/loaders.py djblets/extensions/manager.py Tool: PEP8 Style Checker Processed Files: djblets/extensions/loaders.py djblets/extensions/manager.py