question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RemovedInDjango30Warning: {% load admin_static %} is deprecated

See original GitHub issue

Hello! 👋

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:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
silentsokolovcommented, Jan 30, 2019

@daniel-ruiz upgrade to 0.3.11 and thanks for PR!

1reaction
silentsokolovcommented, Jan 29, 2019

1.8.x is normal, package uses template rangefilter/date_filter_1_8.html 1.9.x is normal, package uses template rangefilter/date_filter.html 1.10.x is deprecated, package uses template rangefilter/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 or static

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found