Skip to content

simonw/django-plugin-database-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Django plugin for reading the DATABASE_URL environment variable

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages