From a65b50f48c994ca681ee4bb74c0014353b0df9af Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 4 Apr 2019 21:19:07 +0200 Subject: [PATCH] use "load static", fixes #403 django (since 1.10) supports this and internally will use staticfiles if django.contrib.staticfiles is in INSTALLED_APPS (which is the case). this should fix the deprecation warnings we got. also: require django >= 1.11.0. --- setup.py | 2 +- src/nsupdate/templates/base.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 06d0a0c..17689e5 100644 --- a/setup.py +++ b/setup.py @@ -49,7 +49,7 @@ setup( install_requires=[ 'dnspython<1.17.0', # 1.16 is last with py27 support 'netaddr', - 'django', + 'django>=1.11.0', 'django-bootstrap-form', 'django-registration-redux', 'django-extensions', diff --git a/src/nsupdate/templates/base.html b/src/nsupdate/templates/base.html index ecbde37..3880790 100644 --- a/src/nsupdate/templates/base.html +++ b/src/nsupdate/templates/base.html @@ -1,4 +1,4 @@ -{% load static from staticfiles %} +{% load static %} {% load i18n %}{% load bootstrap %}