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

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

Uploaded Source

Built Distribution

django_autodisco-0.1.0-py3-none-any.whl (3.0 kB view details)

Uploaded Python 3

File details

Details for the file django_autodisco-0.1.0.tar.gz.

File metadata

  • Download URL: django_autodisco-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 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

Hashes for django_autodisco-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b4dc4f71e4ee0804572109561c6b4d601300413b6344d098f9fc3cdc22fedf32
MD5 5fed1f08100170c216025d4838cbcd37
BLAKE2b-256 1662b4ac0cf64eea36ad855f9ee524b3d919f595fe94a2d84b5865c3a8519f50

See more details on using hashes here.

File details

Details for the file django_autodisco-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: django_autodisco-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.0 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

Hashes for django_autodisco-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 21a02d2c800991daef253ec501df4fd9e0c67805ac4b81187225aa8301767af4
MD5 266e6b9e51637d88fd273994885f7da0
BLAKE2b-256 94f42ef67541186a7ddeed75a084c44ef92443021102cf8834f40b213de02551

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