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
1 changed files with 1 additions and 1 deletions

View File

@ -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):