Changes between Initial Version and Version 2 of Ticket #3667
- Timestamp:
- Mar 9, 2007, 6:19:34 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3667
- Property Triage Stage Unreviewed → Design decision needed
- Property Resolution → wontfix
- Property Status new → closed
-
Ticket #3667 – Description
initial v2 1 1 Hello everybody, i played a bit with generic views and thought, that it would be useful to have a 'template_base' optional argument. If you want to pass a custom template to a generic view, you currently have to add a 'template_name' argument to the parameter dictionary. For example, i have an app called 'blog' with a template-folder inside, Django has no problem with that, but the default generic views want to see my html-files in 'blog/templates/blog/'. So, when i provide something like this: 2 2 3 {{{ 4 #!python 3 5 info_dict = { 4 6 'queryset' : Spam.objects.all(), 5 7 'date_field' : 'pub_date', 6 8 } 9 }}} 7 10 8 11 i would like to have that: 9 12 13 {{{ 14 #!python 10 15 info_dict = { 11 16 'queryset' : Spam.objects.all(), … … 13 18 'template_base' : 'templates', 14 19 } 15 20 }}} 16 21 This would simplyfy my URLconfs, currently if have to do a 17 22 23 {{{ 24 #!python 18 25 ... 19 26 dict(blog_dict,template_name='Spam.html'), 20 27 ... 28 }}} 21 29 22 30 in every URLconf. Maybe you could give it a tought.