django-watchfiles is a Django package that enhances Django's built-in autoreloader by utilizing the more efficient `watchfiles` library. It provides faster and more reliable file change detection during development, leading to quicker server reloads. The current version is 1.4.0. It has an active but infrequent release cadence, typically releasing new versions as `watchfiles` or Django versions evolve.
pip install django-watchfilesVerified import paths — ran on the pinned version, not inferred.
Install the package and add 'django_watchfiles' to your Django project's INSTALLED_APPS in `settings.py`. Ensure `DEBUG = True` for autoreloading to be active. Run `python manage.py runserver` as usual.
Upgrade watchfiles: `pip install --upgrade watchfiles`.
Ensure `DEBUG = True` in your `settings.py` for local development. Do not use it in production.
If needed, set `WATCHFILES_WATCH_DIR` in `settings.py` to a more encompassing path, or specify multiple paths in a list: `WATCHFILES_WATCH_DIR = ['/path/to/project', '/path/to/another/watched/dir']`.
Upgrade your Django project to Django 3.2 or a later version.
Run `pip install django-watchfiles`.
Ensure `'django_watchfiles'` is present in your `INSTALLED_APPS` list and `DEBUG = True` in your `settings.py`.
Upgrade `watchfiles` to a compatible version: `pip install --upgrade watchfiles`.
No resource links recorded.