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.

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

Uploaded Source

Built Distribution

djp-0.1.1-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: djp-0.1.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for djp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3d0758e9699dbd683865b2d000fdd2ffbc5e20e0da22152a65aa40905ae1397c
MD5 e584eefd1dcbbe6e64af8904847bee9d
BLAKE2b-256 645690c4e7d974faaa7801e6e9c3bb7d47b2a186303086ff6ed041d303d014f1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: djp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.4 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4c0ee828fee869a3e4f8ea2055e94409fbbbf2ed50ddc28750db4edf8f60d148
MD5 0082ebbda275cb5d1d4c3f04857cb207
BLAKE2b-256 aeac30430f21219219f7e4ffb6df8fb677fd1ebea2e71fb4d2029331d63222ab

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