Skip to main content

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

Release files for django-plugin-database-url 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-plugin-database-url 0.1
File Size Uploaded
django_plugin_database_url-0.1.tar.gz 6.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-plugin-database-url 0.1
File Interpreter ABI Platform
django_plugin_database_url-0.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.3 kB

Release files / django_plugin_database_url-0.1.tar.gz

Download URL django_plugin_database_url-0.1.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
40d29edbdc2f8ff24de4166df2b68a910ecbc8d4859e11693e3d954859874f04
BLAKE2b-256 checksum
How to use checksums
b060992c1ef333582175cad2931ed837a9941642605befbaa7945497bf02706f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / django_plugin_database_url-0.1-py3-none-any.whl

Download URL django_plugin_database_url-0.1-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d54241d40b0905a5f27e626f8b23fe5404661279e730f2fd7383e77c5a2881ad
BLAKE2b-256 checksum
How to use checksums
bb95809e5d4a308618c7fd3880d95dbd87e3e386a169245273fa800735ade054
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page