tjwalch/django-livereload-server

Page is reloaded before template is updated

Opened this issue · 1 comments

When I update a Django template, a reload happens as expected, but often, the reloaded page doesn't show the changes I just saved. To see them, I need to save the template a second time (with no new changes).

It feels like the reload might be happening before Django has picked up the template changes?

Have not setup any template caching in my dev env.

Using the Channels runserver in case that matters.

Had forgotten that starting from Django 4.1, template caching is enabled by default even when DEBUG is True.

As expected, disabling caching resolves this problem. Might be good to add a note regarding this to the README.