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: |
|
|||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Commit: |
|
|||||||||||||||||||||||||||||||||||||||
Diff: |
Revision 2 (+85 -21) |
-
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: |
|
||||
---|---|---|---|---|---|
Diff: |
Revision 3 (+89 -21) |
-
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
-
-
djblets/extensions/loaders.py (Diff revision 3) We should probably kill these headers when we see them (unless there's some specific copyright info for other people that needs to be preserved).