Add django-linear-migrations dependency

- Introduced `django-linear-migrations` version 2.17.0 to manage migrations more effectively and prevent merges.
- Refactored `INSTALLED_APPS` in `settings.py` to allow linear-migrations to track first party apps explicitly.
This commit is contained in:
badblocks 2025-05-06 23:16:10 -07:00
parent 2dba19a77e
commit fa6103d007
6 changed files with 31 additions and 9 deletions

View file

@ -68,6 +68,16 @@ DEBUG = env('DEBUG')
ALLOWED_HOSTS = env('ALLOWED_HOSTS').split(',')
CSRF_TRUSTED_ORIGINS = env('CSRF_TRUSTED_ORIGINS').split(',')
FIRST_PARTY_APPS = [
"theme",
"common",
"accounts",
"cards",
"home",
"trades"
]
# Application definition
# https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
INSTALLED_APPS = [
@ -86,14 +96,9 @@ INSTALLED_APPS = [
"crispy_forms",
"crispy_tailwind",
"tailwind",
"theme",
"common",
"accounts",
"cards",
"home",
"trades",
"django_linear_migrations",
"meta",
]
] + FIRST_PARTY_APPS
if DEBUG:
INSTALLED_APPS.append("django_browser_reload")