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

Component template changes require server restart #5

Open
Plonq opened this issue Dec 13, 2024 · 0 comments
Open

Component template changes require server restart #5

Plonq opened this issue Dec 13, 2024 · 0 comments

Comments

@Plonq
Copy link

Plonq commented Dec 13, 2024

Describe the bug
Editing a component's template requires restarting the server. Perhaps the template is cached, even in DEBUG mode?

To Reproduce
Steps to reproduce the behavior:

  1. Create a component and use the component in a template
  2. Run python manage.py runserver
  3. Edit the component's template
  4. Refresh the browser
  5. Notice that the changes are not reflected
  6. Change the component function in any way and save (OR kill and restart server)
  7. Refresh browser
  8. Notice that the changes are now reflected

Expected behavior
When using bare @register.inclusion_tag, changes to the referenced template are automatically reflected without needing to restart the server. I'd expect the same thing to happen with component templates, at least when DEBUG == True

Screenshots
N/A

django-component-kit Version
0.5.1

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