Skip to main content

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


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)

Uploaded Source

Built Distribution

django_autodisco-0.1.1-py3-none-any.whl (3.3 kB view hashes)

Uploaded Python 3

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