A plugin system for Django
Project description
DJP: Django Plugins
A plugin system for Django
Installation
Install this library using pip
:
pip install djp
Configuration
Add this to the end of your settings.py
file:
import djp
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
djp-0.1.tar.gz
(7.8 kB
view details)
Built Distribution
djp-0.1-py3-none-any.whl
(8.2 kB
view details)
File details
Details for the file djp-0.1.tar.gz
.
File metadata
- Download URL: djp-0.1.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93c2d56f8eff6e9b7b7ea1258c3bcebc7d86514134df3334b865b648f54d27d6 |
|
MD5 | d5f857fb09aa8f0896250b46b86e90f8 |
|
BLAKE2b-256 | 57cc220b43d4ecae4d9c6451f803484b7ad6c13046de3db7c151d55b4cb701f4 |
File details
Details for the file djp-0.1-py3-none-any.whl
.
File metadata
- Download URL: djp-0.1-py3-none-any.whl
- Upload date:
- Size: 8.2 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 | fbcd3f275f1edc84b98b94685705e3baba4542515d8a970900a842f72a76dbae |
|
MD5 | 36dc85572491ffebd252be9d3a52b161 |
|
BLAKE2b-256 | dd1921ec4f1cade7ed38120a9b06bb99ec21e412b67228c5acbaaf564f62c58a |