mirror of
https://github.com/jazzband/dj-database-url.git
synced 2026-05-17 19:51:11 +00:00
Merge pull request #14 from wraithan/patch-1
Added docs for default argument to config
This commit is contained in:
commit
0b68da67d8
1 changed files with 3 additions and 2 deletions
|
|
@ -11,9 +11,10 @@ This simple Django utility allows you to utilize the
|
|||
Usage
|
||||
-----
|
||||
|
||||
Configure your database in ``settings.py`` from ``DATABASE_URL``::
|
||||
Configure your database in ``settings.py`` from ``DATABASE_URL``
|
||||
(``default`` is optional)::
|
||||
|
||||
DATABASES = {'default': dj_database_url.config()}
|
||||
DATABASES = {'default': dj_database_url.config(default='postgres://...')}
|
||||
|
||||
Parse an arbitrary Database URL::
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue