Apply pycodestyle recommendations on vpnmanager dir
This commit is contained in:
parent
e123331b02
commit
0d3c94eca4
2 changed files with 8 additions and 5 deletions
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
},
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in a new issue