A plugin system for Django
Project description
DJP: Django Plugins
A plugin system for Django
Visit djp.readthedocs.io for full documentation, including how to install plugins and how to write new plugins.
See DJP: A plugin system for Django for an introduction to this project.
Installation
Install this library using pip
:
pip install djp
Configuration
Add this to the end of your settings.py
file:
import djp
# ... existing settings.py contents
djp.settings(globals())
Then 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
Built Distribution
File details
Details for the file djp-0.3.1.tar.gz
.
File metadata
- Download URL: djp-0.3.1.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d447c2f42282ec7628567e4ece5090ef37095b87e0853ebe8f0b876a1143e83 |
|
MD5 | 32ccd9f6db389be1f8ff19d407b52e0f |
|
BLAKE2b-256 | 835895fdfa5c5d9b7c64a96599b9f5fbfa34c254c28961ddd93491cf4e550b22 |
File details
Details for the file djp-0.3.1-py3-none-any.whl
.
File metadata
- Download URL: djp-0.3.1-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dd2490907d503fef0f1a729d00268fbcb7c11c77b33b9a46b6d13cc7cb5dc389 |
|
MD5 | 8668b64ffffe27af9cdb53ffacaff577 |
|
BLAKE2b-256 | 60730dc7d0c372ed366ecb8b7dd760525c90f53e0e2f40f8e944cd810d017a4a |