Django plugin that reads the DATABASE_URL environment variable
Project description
django-plugin-database-url
Django plugin that reads the DATABASE_URL
environment variable
Installation
First configure your Django project to use DJP.
Then install this plugin in the same environment as your Django application.
pip install django-plugin-database-url
Usage
Once installed, any DATABASE_URL
environment variable will be automatically used to configure your Django database setting, using dj-database-url.
This plugin mainly exists to demonstrate the settings() plugin hook in DJP.
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd django-plugin-database-url
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
pip install -e '.[test]'
To run the tests:
python -m pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django_plugin_database_url-0.1.tar.gz
.
File metadata
- Download URL: django_plugin_database_url-0.1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40d29edbdc2f8ff24de4166df2b68a910ecbc8d4859e11693e3d954859874f04 |
|
MD5 | 1bd94dcb07485fde8909665ff7644d65 |
|
BLAKE2b-256 | b060992c1ef333582175cad2931ed837a9941642605befbaa7945497bf02706f |
File details
Details for the file django_plugin_database_url-0.1-py3-none-any.whl
.
File metadata
- Download URL: django_plugin_database_url-0.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d54241d40b0905a5f27e626f8b23fe5404661279e730f2fd7383e77c5a2881ad |
|
MD5 | 7d93d15cb943d9cebd2a6b64560e435b |
|
BLAKE2b-256 | bb95809e5d4a308618c7fd3880d95dbd87e3e386a169245273fa800735ade054 |