Skip to main content

A plugin system for Django

Project description

DJP: Django Plugins

PyPI Tests Changelog License

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


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.3.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

djp-0.3-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file djp-0.3.tar.gz.

File metadata

  • Download URL: djp-0.3.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

Hashes for djp-0.3.tar.gz
Algorithm Hash digest
SHA256 2da1c1d90fb14805607efefc89085d5a40094608bf52e584fdafb2ef95f1c3ac
MD5 7450c5016c91ecd426b8054ad1923b75
BLAKE2b-256 8338026d6031a08cd9d353c0cee3b27ad92c13263506f860862c931f641c7f54

See more details on using hashes here.

File details

Details for the file djp-0.3-py3-none-any.whl.

File metadata

  • Download URL: djp-0.3-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

Hashes for djp-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9c8a7d60850c347c62031eaa092f064b42f657b944767e86cb46f23290d22606
MD5 3f079892d3a71962c1d0f17e0058874a
BLAKE2b-256 86104132b0e28ef283ea51e87a9af25598601d3dc51526e25af4050ffce1355e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page