At the top of your setting.py file in django add :
from django_server_autoreload.Django_AutoReloader import Autoreload_Django
At the End of settings.py file add the bellow code.
Avoid using keybordshort shortcuts Ctrl +s or Ctrl + c when using this package ,this will make the server stop responding to requests because this module kills #and creates anew dajngo main thread for you.
re_run=Autoreload_Django(reload_time="03:00",app_url="127.0.0.1:8080")
re_run.refresh.start()
Release files for django-server-autoreload 1.4.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django_server_autoreload-1.4.5.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_server_autoreload-1.4.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:8.0 kB
Release files / django_server_autoreload-1.4.5.tar.gz
| Download URL | django_server_autoreload-1.4.5.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c43a2f7064cf4388601e77427e81c3ffa7689fcdcc3e4dbd58cc0ed556d1b69
|
|
BLAKE2b-256 checksum How to use checksums |
bbb4e13aeb76f67add1b0d0812b6d6068b574515800b5ae1b769c276ea1aa508
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.6.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.8
|
Release files / django_server_autoreload-1.4.5-py3-none-any.whl
| Download URL | django_server_autoreload-1.4.5-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e276f61e8f26051c13b5f3dbc7e8c12b06748e4a5a3410d9e1a4c311de79e9d2
|
|
BLAKE2b-256 checksum How to use checksums |
5599683bbaf40f581a50adf85c52a4fd3b1d80d760dee8338974c2db0cc30be0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.6.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.8
|