aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/settings.py
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-07-11 05:10:19 +0400
committerGravatar Hassan Abouelela <[email protected]>2022-07-11 05:10:19 +0400
commit4edb368c39c96f20e41a8874b0f77f30910c8ce7 (patch)
tree13c3828df095765d2c6d53072c22ae37427a3073 /pydis_site/settings.py
parentBump flake8-bandit To v3 (diff)
Bump Django To 3.2
Bumps the current django version to 3.2 For the most part, there are no major changes here. The app configuration names were incorrect, and the new version no longer ignores that, so those were updated. The new version also requires explicitly defining the field type for primary keys if they are not defined on the model. Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'pydis_site/settings.py')
-rw-r--r--pydis_site/settings.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pydis_site/settings.py b/pydis_site/settings.py
index 17f220f3..03c16f4b 100644
--- a/pydis_site/settings.py
+++ b/pydis_site/settings.py
@@ -219,6 +219,9 @@ if DEBUG:
else:
PARENT_HOST = env('PARENT_HOST', default='pythondiscord.com')
+# Django Model Configuration
+DEFAULT_AUTO_FIELD = "django.db.models.AutoField"
+
# Django REST framework
# https://www.django-rest-framework.org
REST_FRAMEWORK = {