A plugin system for Django
Project description
Django Plugins
A plugin system for Django
Installation
Install this library using pip
:
pip install djp
Configuration
Add this to your settings.py
file:
import djp
# ...
INSTALLED_APPS = [
"your_app1",
"your_app2",
] + djp.installed_apps()
# ...
MIDDLEWARE = djp.middleware([
"your_middleware1",
"your_middleware2",
])
# And at the very end of that file:
djp.settings(globals())
And add this to your URL configuration in urls.py
:
urlpatterns = [
# ...
] + djp.urlpatterns()
Usage
Installing a plugin in the same environment as your Django application should cause that plugin to automatically add the necessary
Development
To contribute to this library, first checkout the code. Then create a new virtual environment:
cd djp
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
python -m 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
djp-0.1a1.tar.gz
(6.7 kB
view hashes)
Built Distribution
djp-0.1a1-py3-none-any.whl
(7.0 kB
view hashes)