1
Fork 0
This commit is contained in:
Motiejus Jakštys 2024-01-15 10:10:11 +02:00
parent ad62170e87
commit 2301cb2191
2 changed files with 7 additions and 16 deletions

View File

@ -21,7 +21,7 @@ if secret_path := environ.get("E11SYNC_SECRET_KEY_PATH"):
_SECRET_KEY = f.read().strip() _SECRET_KEY = f.read().strip()
secret_key_msg = "SECRET_KEY read from {}".format(secret_path) secret_key_msg = "SECRET_KEY read from {}".format(secret_path)
else: else:
_SECRET_KEY = 'django-insecure-$e2!=equ(efm0e%f9&t+xjtz0)$*$@pw%rnjdqcl8f@5o5hw!l' _SECRET_KEY = 'django-insecure-$e2!=indeed'
secret_key_msg = "SECRET_KEY is insecure" secret_key_msg = "SECRET_KEY is insecure"
# otherwise it gets printed twice # otherwise it gets printed twice
@ -97,21 +97,13 @@ DATABASES = {
} }
} }
AUTH_PASSWORD_VALIDATORS = [ _password_validators = [
{ 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator', 'django.contrib.auth.password_validation.MinimumLengthValidator',
}, 'django.contrib.auth.password_validation.CommonPasswordValidator',
{ 'django.contrib.auth.password_validation.NumericPasswordValidator',
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
] ]
AUTH_PASSWORD_VALIDATORS = [{'NAME': v} for v in _password_validators]
LANGUAGE_CODE = 'en-us' LANGUAGE_CODE = 'en-us'

View File

@ -72,7 +72,6 @@
}; };
format = pkgs.runCommand "check-format" {} '' format = pkgs.runCommand "check-format" {} ''
${pkgs.python3Packages.flake8}/bin/flake8 \ ${pkgs.python3Packages.flake8}/bin/flake8 \
--max-line-length 99 \
--exclude ${./.}/app/signup/migrations/ ${./.}/app --exclude ${./.}/app/signup/migrations/ ${./.}/app
mkdir -p $out mkdir -p $out
''; '';