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

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

If you're not sure about the file name format, learn more about wheel file names.

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

  • 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

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.

Release history Release notifications | RSS feed

This release

0.1

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page