mirror of
https://github.com/jazzband/dj-database-url.git
synced 2026-05-03 21:14:51 +00:00
Set the DATABASES dict rather than assigning to it.
Basically just to allow more copy-pasting from the README. I know it should be obvious but it was instinct to copy verbatim.
This commit is contained in:
parent
9ab34db82a
commit
3a2232f3a6
1 changed files with 2 additions and 2 deletions
|
|
@ -11,11 +11,11 @@ Usage
|
|||
|
||||
Configure your database in ``settings.py`` from ``DATABASE_URL``::
|
||||
|
||||
DATABASES['default'] = dj_database_url.config()
|
||||
DATABASES = {'default': dj_database_url.config()}
|
||||
|
||||
Parse an arbitrary Database URL::
|
||||
|
||||
DATABASES['default'] = dj_database_url.parse('postgres://...')
|
||||
DATABASES = {'default': dj_database_url.parse('postgres://...')}
|
||||
|
||||
Supported databases
|
||||
-------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue