jazzband / dj-database-url

Use Database URLs in your Django Application.
https://pypi.org/project/dj-database-url/
BSD 3-Clause "New" or "Revised" License
1.49k stars 205 forks source link

What is special about it? #61

Closed TonyPythoneer closed 8 years ago

TonyPythoneer commented 8 years ago

It's just changed from dict config to invoking function of this package to do connection.

I have read 12factor but I don't still understand.

Anyone can answer?

kennethreitz commented 8 years ago

This packages allows you to use a URL to declare your database connections, instead of dictionaries. Many web services (like Heroku Postgres) provide URLs that contain connection information.

This module also promotes the use of not hardcoding your credentials into your Django codebase, and instead using environment variables to pass them in (like arguments) to your application at runtime.