Hi All
i have a middleware that override the response.template_name variable
class MyMiddleware(object):
def process_template_response(self,request, response):
response.template_name = ("%s/%s"%("admin",request.template_name))
the view is very easy
class Admin_HomeView(TemplateView):
template_name = "home.html"
and i catch an error
'WSGIRequest' object has no attribute 'template_name'
the response have no the template_name attribute
what is wrong?
thank's and have a nice day