Add options to reload django when file changes in windows docker

This commit is contained in:
quroom 2024-04-06 11:36:23 +09:00
parent 83ceb39b50
commit bac46de67f

View File

@ -83,6 +83,15 @@ if env("USE_DOCKER") == "yes":
# The node container isn't started (yet?)
pass
{%- endif %}
{% if cookiecutter.windows == 'y' %}
# RunServerPlus
# ------------------------------------------------------------------------------
# After how many seconds auto-reload should scan for updates in poller-mode
RUNSERVERPLUS_POLLER_RELOADER_INTERVAL = 5
# Werkzeug reloader type [auto, watchdog, or stat]
RUNSERVERPLUS_POLLER_RELOADER_TYPE = 'stat'
{% endif %}
{%- endif %}
# django-extensions