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
Metadata
Release files for djp 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| djp-0.3.1.tar.gz | 8.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| djp-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.5 kB
Release files / djp-0.3.1.tar.gz
| Download URL | djp-0.3.1.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7d447c2f42282ec7628567e4ece5090ef37095b87e0853ebe8f0b876a1143e83
|
|
BLAKE2b-256 checksum How to use checksums |
835895fdfa5c5d9b7c64a96599b9f5fbfa34c254c28961ddd93491cf4e550b22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|
Release files / djp-0.3.1-py3-none-any.whl
| Download URL | djp-0.3.1-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd2490907d503fef0f1a729d00268fbcb7c11c77b33b9a46b6d13cc7cb5dc389
|
|
BLAKE2b-256 checksum How to use checksums |
60730dc7d0c372ed366ecb8b7dd760525c90f53e0e2f40f8e944cd810d017a4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.6
|