From ec8a8e7df40c81f2db04a3f990eeaba5a124bd11 Mon Sep 17 00:00:00 2001 From: Johannes Hoppe Date: Tue, 26 Mar 2019 08:16:18 +0100 Subject: [PATCH] Fix bandit and flake8 errors --- .bandit | 2 ++ test_project/test_project/settings.py | 1 - test_project/test_project/urls.py | 2 +- test_project/test_project/wsgi.py | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 .bandit diff --git a/.bandit b/.bandit new file mode 100644 index 0000000..fba0d25 --- /dev/null +++ b/.bandit @@ -0,0 +1,2 @@ +[bandit] +exclude: tests diff --git a/test_project/test_project/settings.py b/test_project/test_project/settings.py index 1ffe526..295981c 100644 --- a/test_project/test_project/settings.py +++ b/test_project/test_project/settings.py @@ -84,7 +84,6 @@ class Base(Configuration): STATICFILES_FINDERS = ( 'django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder', - # 'django.contrib.staticfiles.finders.DefaultStorageFinder', ) # Make this unique, and don't share it with anybody. diff --git a/test_project/test_project/urls.py b/test_project/test_project/urls.py index cc4356b..b23e2d5 100644 --- a/test_project/test_project/urls.py +++ b/test_project/test_project/urls.py @@ -1,4 +1,4 @@ -from django.conf.urls import patterns, include, url +from django.conf.urls import patterns # Uncomment the next two lines to enable the admin: # from django.contrib import admin diff --git a/test_project/test_project/wsgi.py b/test_project/test_project/wsgi.py index b250403..1bdda28 100644 --- a/test_project/test_project/wsgi.py +++ b/test_project/test_project/wsgi.py @@ -20,7 +20,7 @@ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "test_project.settings") # This application object is used by any WSGI server configured to use this # file. This includes Django's development server, if the WSGI_APPLICATION # setting points here. -from django.core.wsgi import get_wsgi_application +from django.core.wsgi import get_wsgi_application # noqa application = get_wsgi_application() # Apply WSGI middleware here.