Skip to content

Commit

Permalink
Avoid Django 3.2+ warning (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
am97 authored Feb 25, 2024
1 parent a38d49a commit 3cf6e5d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions postorius/mailman-web/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@
'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
Expand Down
5 changes: 5 additions & 0 deletions web/mailman-web/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@
'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
Expand Down

0 comments on commit 3cf6e5d

Please sign in to comment.