fix: Variables booléennes par défaut

This commit is contained in:
N3WT DE COMPET
2025-05-31 18:14:05 +02:00
parent 59a0d40130
commit 6bedf715cc
2 changed files with 3 additions and 3 deletions

View File

@ -234,8 +234,8 @@ EMAIL_PORT = os.getenv('EMAIL_PORT', 587)
EMAIL_HOST_USER = os.getenv('EMAIL_HOST_USER', '')
EMAIL_HOST_PASSWORD = os.getenv('EMAIL_HOST_PASSWORD', '')
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_TLS = os.getenv('EMAIL_USE_TLS', True)
EMAIL_USE_SSL = os.getenv('EMAIL_USE_SSL', False)
EMAIL_USE_TLS = os.getenv('EMAIL_USE_TLS', 'true').lower() == 'true'
EMAIL_USE_SSL = os.getenv('EMAIL_USE_SSL', 'false').lower() == 'true'
DOCUMENT_DIR = 'documents'

View File

@ -10,7 +10,7 @@ def run_command(command):
print(f"stderr: {stderr.decode()}")
return process.returncode
test_mode = os.getenv('TEST_MODE', 'False') == 'True'
test_mode = os.getenv('test_mode', 'false').lower() == 'true'
commands = [
["python", "manage.py", "collectstatic", "--noinput"],