This Django utility allows you to utilize the 12factor inspired DATABASE_URL environment variable to configure Django applications.
The
dj_database_url.config
method returns a Django database connection dictionary, populated with all the data specified in your URL. There is also aconn_max_age
argument to easily enable Django's connection pool.If you'd rather not use an environment variable, you can pass a URL in directly instead to
dj_database_url.parse
.Supported Databases
Support currently exists for PostgreSQL, PostGIS, MySQL, MySQL (GIS), Oracle, Oracle (GIS), and SQLite.
Package Version | Update ID | Released | Package Hub Version | Platforms | Subpackages |
---|---|---|---|---|---|
0.5.0-bp156.3.1 info | GA Release | 2023-07-22 | 15 SP6 |
|
|
0.5.0-bp155.2.11 info | GA Release | 2023-05-22 | 15 SP5 |
|
|
0.5.0-bp154.1.28 info | GA Release | 2022-05-09 | 15 SP4 |
|
|
0.5.0-bp153.1.15 info | GA Release | 2021-03-06 | 15 SP3 |
|
|
0.5.0-bp152.1.8 info | GA Release | 2020-04-17 | 15 SP2 |
|
|
0.4.2-bp151.3.1 info | GA Release | 2019-07-16 | 15 SP1 |
|
|
0.4.2-bp151.2.11 info | GA Release | 2019-05-18 | 15 SP1 |
|
|
0.4.2-bp150.2.4 info | GA Release | 2018-07-30 | 15 |
|
|