Opened 10 years ago

Closed 10 years ago

#23059 closed Bug (invalid)

dev server doesn't reload on template change in Windows

Reported by: jonathan.strong@… Owned by: nobody
Component: Core (Management commands) Version: 1.7-rc-1
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

running the dev server for the latest stable/1.7.x build in Windows 8, I noticed that it does not auto reload when I change and save a template file. It does reload when I change and save a view file.

Change History (3)

comment:1 by Tim Graham, 10 years ago

Resolution: invalid
Status: newclosed

"The development server automatically reloads Python code for each request, as needed." There shouldn't be a need to reload templates as they aren't cached like Python code is, but if I'm missing something please reopen.

comment:2 by Pavel Sutyrin, 10 years ago

Resolution: invalid
Status: closednew

Hi folks,

Fix me if I am wrong, but when developing templates thru dev server (I've tried both stock devserver for 1.7.3 and replacement django-devserver) I need my templates be reloaded from disk every request, that's the very purpose of devserver — to server the very latest stuff, no caching whatsoever (unless explicitly told so).

Currently it takes some 30 seconds to catch up changed templates. My only template loader is app_directories loader, and from it's source I can see no caching directly involved.

As a workaround, I have to touch some .py file to make server reload by it's default rules, quite a clumsy solution.

I'm developing at Ubuntu 14.04, django 1.7.3 from pip.

comment:3 by Simon Charette, 10 years ago

Resolution: invalid
Status: newclosed

Hi spacediver,

If your development server caches templates for 30 seconds or until you force a server reload it's most probably because you are relying on some form of explicit in-memory template caching or have a third-party installed app doing it for you (such as django-cms).

Anyways, I'm going to re-close this ticket as invalid since I cannot reproduce with a stock 1.7.3 install on Ubuntu 14.04 and your report isn't related to Windows.

Please open a new ticket if you can provide more details on how to reproduce your issue from a stock 1.7.3 install, thanks.

Note: See TracTickets for help on using tickets.
Back to Top