Placate a deprecation warning from Django by importing 'static' from a different module

This commit is contained in:
Danielle McLean 2019-01-24 12:28:55 +11:00
parent 594947852f
commit 1bf0d8478a
Signed by: 00dani
GPG key ID: 8EB789DDF3ABD240

View file

@ -1,5 +1,5 @@
from django.views.generic.base import RedirectView 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): def redirect_to_static(file):