Quote password in DB_URI
All checks were successful
release / docker (push) Successful in 51s

This commit is contained in:
estromenko 2025-11-01 19:27:56 +03:00
parent ea60b802ec
commit 375522864a

View File

@ -12,6 +12,7 @@ https://docs.djangoproject.com/en/5.2/ref/settings/
import os
from pathlib import Path
from urllib.parse import quote
import sentry_sdk
@ -90,7 +91,7 @@ DATABASES = {
},
}
DB_URI = f"postgres://{DATABASES['default']['USER']}:{DATABASES['default']['PASSWORD']}@{DATABASES['default']['HOST']}:{DATABASES['default']['PORT']}/{DATABASES['default']['NAME']}?sslmode=disable"
DB_URI = f"postgres://{DATABASES['default']['USER']}:{quote(DATABASES['default']['PASSWORD'])}@{DATABASES['default']['HOST']}:{DATABASES['default']['PORT']}/{DATABASES['default']['NAME']}?sslmode=disable"
# Password validation