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
Built Distribution
File details
Details for the file django_autodisco-0.1.1.tar.gz
.
File metadata
- Download URL: django_autodisco-0.1.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.8 Linux/5.15.0-1024-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e5819fc74da1cf9e61a0e99123e2e97cb724c673f4a401e7193017b95e76d1e |
|
MD5 | 989602ded611521e11d4684327006f3a |
|
BLAKE2b-256 | 823f30d017bd8b81cdbb3f8222f16d0a0d69dc56ce817fc66102e89576f1cd52 |
File details
Details for the file django_autodisco-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: django_autodisco-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.10.8 Linux/5.15.0-1024-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f06ba896dcf828a5cedd0719b05cc8ab0575e9066caf9d890ff7cf654ad9198d |
|
MD5 | 101d701a56f0ae742691f219e2bfd3a7 |
|
BLAKE2b-256 | bfa8dba4d9ecf7cdaba4d36a0deda1126c315d9f14f90bf405d766d3027062d3 |