From 1bf0d8478a6f0dd5cd92d9e241e7fd932d5a0599 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Thu, 24 Jan 2019 12:28:55 +1100 Subject: [PATCH 1/2] Placate a deprecation warning from Django by importing 'static' from a different module --- wellknowns/views/static.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wellknowns/views/static.py b/wellknowns/views/static.py index 4dfab5b..e09e3c5 100644 --- a/wellknowns/views/static.py +++ b/wellknowns/views/static.py @@ -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): From 0e8f816d0e7c39e3b8801e0fde8c47f86f183a6b Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Thu, 24 Jan 2019 12:29:38 +1100 Subject: [PATCH 2/2] Remove deprecated pre-commit hook autopep8-wrapper --- .pre-commit-config.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 23f58f4..fc4eb69 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.1.0 hooks: - - id: autopep8-wrapper - id: check-byte-order-marker - id: check-case-conflict - id: check-executables-have-shebangs