mirror of
https://github.com/jazzband/dj-database-url.git
synced 2026-03-16 22:20:24 +00:00
Update README.rst
Mention that the library should be imported first before usage
This commit is contained in:
parent
86f0e30b5b
commit
21dc45a071
1 changed files with 1 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ Usage
|
|||
Configure your database in ``settings.py`` from ``DATABASE_URL``
|
||||
(``default`` is optional)::
|
||||
|
||||
import dj_database_url
|
||||
DATABASES = {'default': dj_database_url.config(default='postgres://...')}
|
||||
|
||||
Parse an arbitrary Database URL::
|
||||
|
|
|
|||
Loading…
Reference in a new issue