Utilities for providing optional support for Django in Python packages, allowing conditional feature loading depending on whether Django is installed. Version 0.3.0 appears to be the latest; release cadence is low (last release years ago).
pip install optional-djangoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: check availability and conditionally import Django components.
Use pkg_resources or importlib.metadata to check Django version independently.
Consider using try/except ImportError blocks instead of this library for simplicity.
Use extras_require in setup.py/setup.cfg to keep Django optional.
Run 'pip install optional-django'.
Upgrade to version 0.3.0: 'pip install --upgrade optional-django'.
Call 'django.setup()' or set the DJANGO_SETTINGS_MODULE environment variable before using Django.
No dependency data recorded yet.