feat: add option to configure database connection via DATABASE_URL
This commit is contained in:
6 files changed
+61
-21
No files matched your search
@@ -3,15 +3,17 @@ DJANGO_SETTINGS_MODULE={{ project_name }}.settings.development
|
||||
SECRET_KEY= your-secret-key
|
||||
ALLOWED_HOSTS=api.your-domain.com,www.your-domain.com
|
||||
|
||||
# Database URL (Option 1)
|
||||
DATABASE_URL=
|
||||
|
||||
# Database (Option 2)
|
||||
{% if use_database_url %}
|
||||
# Database URL (recommended for production)
|
||||
DATABASE_URL=postgres://user:password@host:port/database_name
|
||||
{% else %}
|
||||
# Database (individual parameters)
|
||||
DB_NAME=
|
||||
DB_USER=
|
||||
DB_PASSWORD=
|
||||
DB_HOST=
|
||||
DB_PORT=
|
||||
{% endif %}
|
||||
|
||||
# Email settings
|
||||
EMAIL_HOST=
|
||||
|
||||
Reference in new issue
Block a user