Placate a deprecation warning from Django by importing 'static' from a different module
This commit is contained in:
förälder
594947852f
incheckning
1bf0d8478a
|
@ -1,5 +1,5 @@
|
|||
from django.views.generic.base import RedirectView
|
||||
from django.contrib.staticfiles.templatetags.staticfiles import static
|
||||
from django.templatetags.static import static
|
||||
|
||||
|
||||
def redirect_to_static(file):
|
||||
|
|
Laddar…
Referens i nytt ärende