RemovedInDjango30Warning: {% load admin_static %} is deprecated
See original GitHub issueHello! 👋
I wanted to thank you for building this package beforehand. It saved me and my teammates a whole deal of work!
We are using the latest version of django-admin-rangefilter
(v0.3.10) in our Django project. Recently, after upgrading Django to version 2.1 we started seeing the following deprecation warning in our logs:
RemovedInDjango30Warning: {% load admin_static %} is deprecated in favor of {% load static %}
I’ve found out there are several references to admin_static
in django-admin-rangefilter
that are likely the source of these warnings (see here).
It would be amazing that this warning will be suppressed. Do not hesitate to contact me if you need some help with the fix 😄
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
{% load admin_static %} is deprecated · Issue #710 · darklow ...
RemovedInDjango30Warning : {% load admin_static %} is deprecated in favor of {% load static %}. ... I did a small check and found...
Read more >django error cannot import name 'RemovedInDjango30Warning'
This is caused by conflicts in Django versions as seen here. ImportError: cannot import name 'RemovedInDjango30Warning'.
Read more >django.utils.deprecation.RemovedInDjango30Warning()
This page shows Python examples of django.utils.deprecation. ... msg = ( '{% load admin_static %} is deprecated in favor of ' '{% load...
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 - Customizing the admin error - Code with Mosh Forum
ImportError raised when trying to load ... cannot import name 'RemovedInDjango30Warning' from 'django.utils.deprecation'.
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 Free
Top 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
@daniel-ruiz upgrade to 0.3.11 and thanks for PR!
1.8.x is normal, package uses template
rangefilter/date_filter_1_8.html
1.9.x is normal, package uses templaterangefilter/date_filter.html
1.10.x is deprecated, package uses templaterangefilter/date_filter.html
I do not want to create a template for version 1.9 😦
You can override the template
rangefilter/date_filter.html
in your project if this problem bothers you.Best solution create custom template tag, which depending on the version, will call the function
admin_static
orstatic