#9154: Huge improvements in templates rendering
--------------------------------------+-------------------------------------
Reporter: msaelices | Owner: msaelices
Status: new | Milestone:
Component: Template system | Version: SVN
Resolution: | Keywords:
Stage: Unreviewed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Comment (by SmileyChris):
Related ticket: #6262
Good things:
* You're getting the cache templates discussion going again :)
* Nice catch on the template inheritance problem
Things that need fixing:
* You're not setting `user_id` under all circumstances in
`django/contrib/admin/templatetags/log.py`
* You can't remove `get_parent()` because the parent template could be
based on a context variable. It needs to be figured out at render time.
Other considerations:
* Probably needs a setting to turn off caching if you don't want it. In
fact, it probably should be off by default to keep full backwards
compatibility (introduces the need to reset the server after changing
templates).
I was thinking that if people were really worried about out-of-date cached
templates then there could be some a cache which compares file size or
date of the file. This would obviously be a slight bit slower and is out
of scope for an initial cut - just writing down my thoughts :)
--
Ticket URL: <http://code.djangoproject.com/ticket/9154#comment:9>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---