Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page is reloaded before template is updated #68

Open
mikaraunio opened this issue Dec 1, 2023 · 1 comment
Open

Page is reloaded before template is updated #68

mikaraunio opened this issue Dec 1, 2023 · 1 comment

Comments

@mikaraunio
Copy link

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
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant