Skip to main content

Django plugin that reads the DATABASE_URL environment variable

Project description

django-plugin-database-url

PyPI Changelog Tests License

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

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_plugin_database_url-0.1.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

django_plugin_database_url-0.1-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file django_plugin_database_url-0.1.tar.gz.

File metadata

File hashes

Hashes for django_plugin_database_url-0.1.tar.gz
Algorithm Hash digest
SHA256 40d29edbdc2f8ff24de4166df2b68a910ecbc8d4859e11693e3d954859874f04
MD5 1bd94dcb07485fde8909665ff7644d65
BLAKE2b-256 b060992c1ef333582175cad2931ed837a9941642605befbaa7945497bf02706f

See more details on using hashes here.

File details

Details for the file django_plugin_database_url-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for django_plugin_database_url-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d54241d40b0905a5f27e626f8b23fe5404661279e730f2fd7383e77c5a2881ad
MD5 7d93d15cb943d9cebd2a6b64560e435b
BLAKE2b-256 bb95809e5d4a308618c7fd3880d95dbd87e3e386a169245273fa800735ade054

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page