Django autodiscover modules utils
Project description
django-autodisco
Micro django lib that helps auto-loading app modules.
Why this lib?
I am used to grouping signal connectors and receivers in a module called receivers.py
. I didn't want add the module import in the ready
method of all the apps anymore.
Installation
python -m pip install 'django-autodisco @ git+https://github.com/etchegom/django-autodisco.git'
Usage
Add the autodisco
django app:
INSTALLED_APPS = [
...
"autodisco",
]
Define the modules to auto-load in settings:
AUTODISCO_MODULES = [
"receivers",
...
]
Run example
make example
Run tests
make tests
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
django_autodisco-0.1.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for django_autodisco-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21a02d2c800991daef253ec501df4fd9e0c67805ac4b81187225aa8301767af4 |
|
MD5 | 266e6b9e51637d88fd273994885f7da0 |
|
BLAKE2b-256 | 94f42ef67541186a7ddeed75a084c44ef92443021102cf8834f40b213de02551 |