Avoid Django 3.2+ warning (#686)

This commit is contained in:
am97
2024-02-25 06:40:38 +01:00
committed by GitHub
parent a38d49a66a
commit 3cf6e5d18d
2 changed files with 10 additions and 0 deletions

View File

@@ -143,6 +143,11 @@ DATABASES = {
'default': dj_database_url.config(conn_max_age=600)
}
# Avoid Django 3.2+ warning
# https://github.com/maxking/docker-mailman/issues/595
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
# If you're behind a proxy, use the X-Forwarded-Host header
# See https://docs.djangoproject.com/en/1.8/ref/settings/#use-x-forwarded-host
USE_X_FORWARDED_HOST = True