Apply pycodestyle recommendations on vpnmanager dir

This commit is contained in:
Kumi 2019-04-21 14:21:46 +00:00
parent e123331b02
commit 0d3c94eca4
2 changed files with 8 additions and 5 deletions

View file

@ -1,5 +1,6 @@
from django.contrib import admin from django.contrib import admin
def admin_header_processor(request): def admin_header_processor(request):
site_header = getattr(admin.site, 'site_header') site_header = getattr(admin.site, 'site_header')
return {"site_header": site_header} return {"site_header": site_header}

View file

@ -56,7 +56,9 @@ ROOT_URLCONF = 'vpnmanager.urls'
TEMPLATES = [ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [ "/opt/vpnmanager/templates/" ], 'DIRS': [
"/opt/vpnmanager/templates/"
],
'APP_DIRS': True, 'APP_DIRS': True,
'OPTIONS': { 'OPTIONS': {
'context_processors': [ 'context_processors': [
@ -89,16 +91,16 @@ DATABASES = {
AUTH_PASSWORD_VALIDATORS = [ 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
}, },
] ]