Upgrading from rc4. Two live-mount performance fixes and no behaviour change to check. A page that loads
djust_components,djust_flash,theme_tagsor a filter-only tag library now also skips the extra page-shell render that rc4 introduced the skip for (#4298); a project can name its own child-free libraries inLIVEVIEW_CONFIG['childless_tag_libraries']. WithDEBUGoff a mount no longer rebuilds the view's template twice (#4299). As in rc4,exposure_policy = "legacy"and opt-in strict parameters still work and are removed before 2.0.0 final (#4171, #4189). See the 2.0 migration guide.
Fixed
- A live mount still rendered the whole page when it loaded djust's component, flash or theme tags (#4298). The #4295 page-shell skip treated every
{% load %}outside Django's own libraries as one that might embed a child view. It now also clearsdjust_components,djust_flashandtheme_tags(and reads the templates they render, so an overridden one that embeds a child still keeps the render), a library that registers only filters, the filters loaded with{% load name from library %}, and libraries a project lists in the newLIVEVIEW_CONFIG['childless_tag_libraries']. - Every live mount ran the whole
get_template()pipeline twice (#4299). WithDEBUGoff, atemplate_nameview'sget_template()result is now kept per view class, template name, template directories and template text, and cleared with the other render caches (and by a template edit the hot-reload watcher sees). A page-shell render that #4295 skips no longer callsget_template()first, and the mount frame'scache_configandhandler_configshare one decorator scan.