About Using Django Database URL
You can use dj-database-url to read database configuration from environment variable DATABASE_URL
:
1 2 3 4 5 |
|
Here are examples of DATABASE_URL
definitions for different databases:
1 2 3 4 5 6 7 8 |
|
Tips and Tricks Programming Dev Ops Django 4.2 Django 3.2 Django 2.2
Also by me
Django Paddle Subscriptions app
For Django-based SaaS projects.
Django GDPR Cookie Consent app
For Django websites that use cookies.