django-watchfiles 0.1.0
pip install django-watchfiles==0.1.0
Released:
Use watchfiles in Django’s autoreloader.
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Adam Johnson
- Tags Django
- Requires: Python >=3.8
Classifiers
- Development Status
- Framework
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Typing
Project description
Use watchfiles in Django’s autoreloader.
Requirements
Python 3.8 to 3.12 supported.
Django 3.2 to 5.0 supported.
Installation
Install with pip:
python -m pip install django-watchfiles
Add django-watchfiles to your INSTALLED_APPS:
INSTALLED_APPS = [ ..., "django_watchfiles", ..., ]
That’s it! 😅
Django doesn’t provide an official API for alternative autoreloader classes. Therefore, django-watchfiles monkey-patches django.utils.autoreload to make its own reloader the only available class. You can tell it is installed as runserver will list WatchfilesReloader as in use:
$ ./manage.py runserver
Watching for file changes with WatchfilesReloader
...
Unlike Django’s built-in WatchmanReloader, there is no need for a fallback to StatReloader, since watchfiles implements its own internal fallback to using stat.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Adam Johnson
- Tags Django
- Requires: Python >=3.8
Classifiers
- Development Status
- Framework
- Intended Audience
- License
- Natural Language
- Operating System
- Programming Language
- Typing
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_watchfiles-0.1.0.tar.gz
.
File metadata
- Download URL: django_watchfiles-0.1.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e94fa22e78ca129dc8c9071454bed67c9a6d07715a5bd6e284c74cde8d86cb4 |
|
MD5 | 26b6ea40e9ad5d648de5070b6ccec9f7 |
|
BLAKE2b-256 | d80a3759fb4066508868eaebf012a7d60ce3aa267ff0b7fc3e182d4d55cdf092 |
File details
Details for the file django_watchfiles-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: django_watchfiles-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30e0e125bca7c0b577d44d26f0e71a3086de69f1fbb58d1920826c4d9ab8236f |
|
MD5 | 8dcdf9e9c4c5c6daed2a85e0fa24acc2 |
|
BLAKE2b-256 | ac570b5dde6f4de9055949bcf5c8a45a09debe297d1e77ba7da8080ee4fefc49 |