I have a generic view that accepts its template_name attribute from the urlconf dynamic variable:
(r'^(?P<template_name>[^/]+)$', TemplateView.as_view()), But I get an exception: TemplateResponseMixin requires either a definition of 'template_name' or an implementation of 'get_template_names()' I've read the code and understand the difference between class attributes and the kwargs attribute. I also understand how to fix this problem by overriding get_template_names in this case. Does anyone else share my feeling that this is unclear to some users and should be better documented (the difference between initkwargs and kwargs added from the request)? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.