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.
This commit is contained in:
sankalp committed 2025-12-14 09:56:32 +05:45
1 parent 60568a58c8
commit 6193d034bd
2 files changed
+12 -2

No files matched your search

+1
View File
@@ -24,6 +24,7 @@ MANAGERS = ADMINS
THIRD_PARTY_APPS = [
"django_htmx",
"phonenumber_field",
"babel",
"django_tailwind_cli",
"django_browser_reload",
]
+11 -2
View File
@@ -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