From 0d3c94eca4cf6904f568a023d83ea685d373b64f Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Sun, 21 Apr 2019 14:21:46 +0000 Subject: [PATCH] Apply pycodestyle recommendations on vpnmanager dir --- vpnmanager/context_processors.py | 1 + vpnmanager/settings.py | 12 +++++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/vpnmanager/context_processors.py b/vpnmanager/context_processors.py index 66e489c..ac706a8 100644 --- a/vpnmanager/context_processors.py +++ b/vpnmanager/context_processors.py @@ -1,5 +1,6 @@ from django.contrib import admin + def admin_header_processor(request): site_header = getattr(admin.site, 'site_header') return {"site_header": site_header} diff --git a/vpnmanager/settings.py b/vpnmanager/settings.py index 2d2afd1..82cb84b 100644 --- a/vpnmanager/settings.py +++ b/vpnmanager/settings.py @@ -56,7 +56,9 @@ ROOT_URLCONF = 'vpnmanager.urls' TEMPLATES = [ { 'BACKEND': 'django.template.backends.django.DjangoTemplates', - 'DIRS': [ "/opt/vpnmanager/templates/" ], + 'DIRS': [ + "/opt/vpnmanager/templates/" + ], 'APP_DIRS': True, 'OPTIONS': { 'context_processors': [ @@ -89,16 +91,16 @@ DATABASES = { AUTH_PASSWORD_VALIDATORS = [ { - 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', + 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', # noqa }, { - 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', + 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator', # noqa }, { - 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', + 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator', # noqa }, { - 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', + 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator', # noqa }, ]