Deprecation warnings when used with Django 1.9
See original GitHub issueWhen used in a Django 1.9 project crispy-forms code produces some deprecation warnings:
python2.7/site-packages/crispy_forms/utils.py:157: RemovedInDjango110Warning: render() must be called with a dict, not a RequestContext.
html = template.render(context)
python2.7/site-packages/crispy_forms/layout.py:199: RemovedInDjango110Warning: The context_instance argument of render_to_string is deprecated.
return render_to_string(template, {'input': self}, context)
python2.7/site-packages/django/template/loader.py:97: RemovedInDjango110Warning: render() must be called with a dict, not a RequestContext.
return template.render(context, request)
I’m not sure whether this list is complete, but this is all I get in the test suite of one of my projects. I have not observed any wrong behavior in my application yet.
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
How to fix a Deprecation Warning in Django 1.9 - Stack Overflow
It can be easily fixed by removing the use of RequestContext or Context from render() and simply passing a dictionary. Leaving it as...
Read more >Django Deprecation Timeline
This document outlines when various pieces of Django will be removed or altered in a backward incompatible way, following their deprecation, as per...
Read more >Django 1.9 deprecation warnings app_label - YouTube
Django : Django 1.9 deprecation warnings app_label [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] Django : Django 1.9 ...
Read more >Django 1.9 Deprecation Warnings Applabel - ADocLib
Using 'PYENV' to manage different python versions and running this in a virtual environment.System check framework | Django documentation Django disable one.
Read more >Fix deprecation warnings shown whilst running Django 1.8
7/site-packages/rest_framework/ > serializers.py:155: RemovedInDjango19Warning: SortedDict is deprecated and > will be removed in Django 1.9. > return ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Two more instances for you:
Related information (new in Django 1.8):
@kavdev thanks a lot