django-livereload-server icon indicating copy to clipboard operation
django-livereload-server copied to clipboard

Page is reloaded before template is updated

Open mikaraunio opened this issue 2 years ago • 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.

mikaraunio avatar Dec 01 '23 15:12 mikaraunio

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.

mikaraunio avatar Dec 05 '23 03:12 mikaraunio