From 624b20b084cdda1feb5c4687393e3f010c7501ab Mon Sep 17 00:00:00 2001 From: Santiago Lamora Date: Wed, 29 Nov 2023 10:39:38 +0100 Subject: [PATCH] Define DEFAULT_AUTO_FIELD on settings template Since Django 3.0 default is BigAutoField --- orchestra/conf/project_template/project_name/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/orchestra/conf/project_template/project_name/settings.py b/orchestra/conf/project_template/project_name/settings.py index 82b244f9..3c9e0ccc 100644 --- a/orchestra/conf/project_template/project_name/settings.py +++ b/orchestra/conf/project_template/project_name/settings.py @@ -143,6 +143,8 @@ DATABASES = { } } +DEFAULT_AUTO_FIELD = 'django.db.models.AutoField' + # Password validation # https://docs.djangoproject.com/en/{{ docs_version }}/ref/settings/#auth-password-validators @@ -233,6 +235,7 @@ FLUENT_DASHBOARD_ICON_THEME = '../orchestra/icons' # Django-celery import djcelery + djcelery.setup_loader() CELERYBEAT_SCHEDULER = 'djcelery.schedulers.DatabaseScheduler'