You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

admin_static.py 399B

12345678910111213141516
  1. import warnings
  2. from django.template import Library
  3. from django.templatetags.static import static as _static
  4. from django.utils.deprecation import RemovedInDjango30Warning
  5. register = Library()
  6. @register.simple_tag
  7. def static(path):
  8. warnings.warn(
  9. '{% load admin_static %} is deprecated in favor of {% load static %}.',
  10. RemovedInDjango30Warning,
  11. )
  12. return _static(path)