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:
parent
2dba19a77e
commit
fa6103d007
6 changed files with 31 additions and 9 deletions
1
accounts/migrations/max_migration.txt
Normal file
1
accounts/migrations/max_migration.txt
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
0001_initial
|
||||||
1
cards/migrations/max_migration.txt
Normal file
1
cards/migrations/max_migration.txt
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
0001_initial
|
||||||
|
|
@ -68,6 +68,16 @@ DEBUG = env('DEBUG')
|
||||||
ALLOWED_HOSTS = env('ALLOWED_HOSTS').split(',')
|
ALLOWED_HOSTS = env('ALLOWED_HOSTS').split(',')
|
||||||
|
|
||||||
CSRF_TRUSTED_ORIGINS = env('CSRF_TRUSTED_ORIGINS').split(',')
|
CSRF_TRUSTED_ORIGINS = env('CSRF_TRUSTED_ORIGINS').split(',')
|
||||||
|
|
||||||
|
FIRST_PARTY_APPS = [
|
||||||
|
"theme",
|
||||||
|
"common",
|
||||||
|
"accounts",
|
||||||
|
"cards",
|
||||||
|
"home",
|
||||||
|
"trades"
|
||||||
|
]
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
# https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
|
# https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
|
|
@ -86,14 +96,9 @@ INSTALLED_APPS = [
|
||||||
"crispy_forms",
|
"crispy_forms",
|
||||||
"crispy_tailwind",
|
"crispy_tailwind",
|
||||||
"tailwind",
|
"tailwind",
|
||||||
"theme",
|
"django_linear_migrations",
|
||||||
"common",
|
|
||||||
"accounts",
|
|
||||||
"cards",
|
|
||||||
"home",
|
|
||||||
"trades",
|
|
||||||
"meta",
|
"meta",
|
||||||
]
|
] + FIRST_PARTY_APPS
|
||||||
|
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
INSTALLED_APPS.append("django_browser_reload")
|
INSTALLED_APPS.append("django_browser_reload")
|
||||||
|
|
|
||||||
|
|
@ -41,4 +41,5 @@ dependencies = [
|
||||||
"typing-extensions==4.9.0",
|
"typing-extensions==4.9.0",
|
||||||
"urllib3==1.26.14",
|
"urllib3==1.26.14",
|
||||||
"whitenoise==6.7.0",
|
"whitenoise==6.7.0",
|
||||||
|
"django-linear-migrations>=2.17.0",
|
||||||
]
|
]
|
||||||
|
|
|
||||||
1
trades/migrations/max_migration.txt
Normal file
1
trades/migrations/max_migration.txt
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
0001_initial
|
||||||
17
uv.lock
generated
17
uv.lock
generated
|
|
@ -1,5 +1,4 @@
|
||||||
version = 1
|
version = 1
|
||||||
revision = 1
|
|
||||||
requires-python = ">=3.13"
|
requires-python = ">=3.13"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
@ -56,7 +55,7 @@ name = "click"
|
||||||
version = "8.1.8"
|
version = "8.1.8"
|
||||||
source = { registry = "https://pypi.org/simple" }
|
source = { registry = "https://pypi.org/simple" }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "colorama", marker = "sys_platform == 'win32'" },
|
{ name = "colorama", marker = "platform_system == 'Windows'" },
|
||||||
]
|
]
|
||||||
sdist = { url = "https://files.pythonhosted.org/packages/b9/2e/0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b/click-8.1.8.tar.gz", hash = "sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a", size = 226593 }
|
sdist = { url = "https://files.pythonhosted.org/packages/b9/2e/0090cbf739cee7d23781ad4b89a9894a41538e4fcf4c31dcdd705b78eb8b/click-8.1.8.tar.gz", hash = "sha256:ed53c9d8990d83c2a27deae68e4ee337473f6330c040a31d4225c9574d16096a", size = 226593 }
|
||||||
wheels = [
|
wheels = [
|
||||||
|
|
@ -199,6 +198,18 @@ wheels = [
|
||||||
{ url = "https://files.pythonhosted.org/packages/83/b3/0a3bec4ecbfee960f39b1842c2f91e4754251e0a6ed443db9fe3f666ba8f/django_environ-0.12.0-py2.py3-none-any.whl", hash = "sha256:92fb346a158abda07ffe6eb23135ce92843af06ecf8753f43adf9d2366dcc0ca", size = 19957 },
|
{ url = "https://files.pythonhosted.org/packages/83/b3/0a3bec4ecbfee960f39b1842c2f91e4754251e0a6ed443db9fe3f666ba8f/django_environ-0.12.0-py2.py3-none-any.whl", hash = "sha256:92fb346a158abda07ffe6eb23135ce92843af06ecf8753f43adf9d2366dcc0ca", size = 19957 },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "django-linear-migrations"
|
||||||
|
version = "2.17.0"
|
||||||
|
source = { registry = "https://pypi.org/simple" }
|
||||||
|
dependencies = [
|
||||||
|
{ name = "django" },
|
||||||
|
]
|
||||||
|
sdist = { url = "https://files.pythonhosted.org/packages/5d/47/b56cd02fa31a26972e489f0ae42b112dc73343f7bc0243581a5947921818/django_linear_migrations-2.17.0.tar.gz", hash = "sha256:29ce3710e1334494d5bcc8b707bde0253e1eacc5a8bf163d7234c88fe3493242", size = 18820 }
|
||||||
|
wheels = [
|
||||||
|
{ url = "https://files.pythonhosted.org/packages/a2/ba/0843be5ea568831d144c56fe1cf31b5741aac98e7583c783fad16b197ab6/django_linear_migrations-2.17.0-py3-none-any.whl", hash = "sha256:5960fd156071127e25e51f41c00a2fb4388ab64da5f581defe7933b7414b33ff", size = 15535 },
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "django-meta"
|
name = "django-meta"
|
||||||
version = "2.4.2"
|
version = "2.4.2"
|
||||||
|
|
@ -399,6 +410,7 @@ dependencies = [
|
||||||
{ name = "django-daisy" },
|
{ name = "django-daisy" },
|
||||||
{ name = "django-debug-toolbar" },
|
{ name = "django-debug-toolbar" },
|
||||||
{ name = "django-environ" },
|
{ name = "django-environ" },
|
||||||
|
{ name = "django-linear-migrations" },
|
||||||
{ name = "django-meta" },
|
{ name = "django-meta" },
|
||||||
{ name = "django-tailwind-4", extra = ["reload"] },
|
{ name = "django-tailwind-4", extra = ["reload"] },
|
||||||
{ name = "django-widget-tweaks" },
|
{ name = "django-widget-tweaks" },
|
||||||
|
|
@ -439,6 +451,7 @@ requires-dist = [
|
||||||
{ name = "django-daisy", specifier = "==1.0.13" },
|
{ name = "django-daisy", specifier = "==1.0.13" },
|
||||||
{ name = "django-debug-toolbar", specifier = "==4.4.6" },
|
{ name = "django-debug-toolbar", specifier = "==4.4.6" },
|
||||||
{ name = "django-environ", specifier = "==0.12.0" },
|
{ name = "django-environ", specifier = "==0.12.0" },
|
||||||
|
{ name = "django-linear-migrations", specifier = ">=2.17.0" },
|
||||||
{ name = "django-meta", specifier = "==2.4.2" },
|
{ name = "django-meta", specifier = "==2.4.2" },
|
||||||
{ name = "django-tailwind-4", extras = ["reload"], specifier = "==0.1.4" },
|
{ name = "django-tailwind-4", extras = ["reload"], specifier = "==0.1.4" },
|
||||||
{ name = "django-widget-tweaks", specifier = "==1.5.0" },
|
{ name = "django-widget-tweaks", specifier = "==1.5.0" },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue