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
pip install django-autodisco
Or, for the latest git version
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.1.tar.gz
(3.5 kB
view hashes)
Built Distribution
Close
Hashes for django_autodisco-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f06ba896dcf828a5cedd0719b05cc8ab0575e9066caf9d890ff7cf654ad9198d |
|
MD5 | 101d701a56f0ae742691f219e2bfd3a7 |
|
BLAKE2b-256 | bfa8dba4d9ecf7cdaba4d36a0deda1126c315d9f14f90bf405d766d3027062d3 |