2013/12/6 German Larrain <[email protected]> > On Friday, December 6, 2013 11:36:00 AM UTC-3, unai wrote: >> >> Lot of app/CMS creators create base templates for their apps. Currently, >> if one >> of those templates needs some kind of change, the user needs to copy the >> template all over again, making it difficult to update their templates >> when >> they update their apps (they would need to copy the new template and then >> make >> their customizations again). >> >> Skipping the current template loader means that they would be able to >> create >> their own template (with the same path as the app template), extend it to >> itself and only change the blocks that need to be changed. >> > > I would love this feature because I've faced the mentioned problems. >
I really like it this feature. I have used this feature from 3 years ago, through an external app [1], in a lot of projects and never I had any problem with it. The more relevant project have been the Malaga University website [2]. Without this feature looks like that Django despises the template code, because If you want to update a little thing of a reusable app (django.contrib.admin, django-mptt, django-tables2 etc) in your project (The most common usecase for this feature) you have to overwrite the complete template [3]. With this feature you will be able to do something like the before example, you will be able to overwrite only some blocks (or one block) of a template. REF's 1. https://pypi.python.org/pypi/django-smart-extends/<https://pypi.python.org/pypi/django-smart-extends/0.5> 2. http://www.uma.es/ 3. http://www.agnostic-library.com/ma/wp-content/uploads/2012/01/Dont-Copy-Paste.png Best regards, -- Pablo Martín -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CALNyWLHogJe4U_Dpj8H0WcMgindDfJ0ekJd8YGT%2BhF-cK3KJfQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
