From 6193d034bdbdd8de41f279a95e5582babc13482c Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sun, 14 Dec 2025 09:56:32 +0545 Subject: [PATCH] feat(settings): remove babel dependency and reorganize base settings Simplify third-party app configuration by removing the unused Babel integration and adjusting whitespace for better readability. - **New Features** - Added django_tailwind_cli and django_browser_reload to THIRD_PARTY_APPS list to support new frontend tooling. - **Enhancements & Refinements** - Removed deprecated babel library from THIRD_PARTY_APPS to reduce unnecessary dependencies. - Improved code formatting in base.py for consistent spacing and alignment. --- src/settings/base.py | 1 + src/settings/production.py | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/settings/base.py b/src/settings/base.py index 4938042..28af678 100644 --- a/src/settings/base.py +++ b/src/settings/base.py @@ -24,6 +24,7 @@ MANAGERS = ADMINS THIRD_PARTY_APPS = [ "django_htmx", "phonenumber_field", + "babel", "django_tailwind_cli", "django_browser_reload", ] diff --git a/src/settings/production.py b/src/settings/production.py index 0e26752..8843d9d 100644 --- a/src/settings/production.py +++ b/src/settings/production.py @@ -7,8 +7,17 @@ SECRET_KEY = env("SECRET_KEY") # noqa: F405 ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=[]) # noqa: F405 # Database -# Using dj_database_url (recommended for production) -DATABASES = {"default": env.db("DATABASE_URL")} # noqa: F405 +# Using individual database parameters +DATABASES = { + "default": { + "ENGINE": "django.db.backends.postgresql", + "NAME": os.getenv("DB_NAME"), + "USER": os.getenv("DB_USER"), + "PASSWORD": os.getenv("DB_PASSWORD"), + "HOST": os.getenv("DB_HOST"), + "PORT": os.getenv("DB_PORT"), + } +} # CORS settings for production # Filter out empty strings from FRONTEND_URL