feat(src/djinit/templates/project): update env template placeholder and add optional database URL dependency

New Features
- Add optional `dj-database-url` dependency for database URL support.

Enhancements
- Replace `{{ project_name }}` with `[[ project_name ]]` in the env template for clearer interpolation.

Bug Fixes
- None
This commit is contained in:
sankalp committed 2026-04-20 14:12:05 +05:45
1 parent 65f300e774
commit c4f66d607b
2 files changed
+4 -1

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
# Django settings
DJANGO_SETTINGS_MODULE={{ project_name }}.settings.development
DJANGO_SETTINGS_MODULE=[[ project_name ]].settings.development
SECRET_KEY=your-secret-key
ALLOWED_HOSTS=api.your-domain.com,www.your-domain.com
@@ -19,6 +19,9 @@ dependencies = [
# @ENDIF
# @IF database_type == 'postgresql'
"psycopg2-binary",
# @ENDIF
# @IF use_database_url
"dj-database-url",
# @ENDIF
"gunicorn",
]