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:
2 files changed
+12
-2
No files matched your search
@@ -24,6 +24,7 @@ MANAGERS = ADMINS
|
||||
THIRD_PARTY_APPS = [
|
||||
"django_htmx",
|
||||
"phonenumber_field",
|
||||
"babel",
|
||||
"django_tailwind_cli",
|
||||
"django_browser_reload",
|
||||
]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user