class based views are as below

class TagList(TemplateView):

     def get_context_data(self, **kwargs):

         ...

         qlist = QueList.as_view()(self.request, **kwargs)
         print qlist

         ...
        

class QueListView(ListView):
    def get_context_data(self, **kwargs):

        ...


When QuesList.as_view() is called then it produces The response content must be 
rendered before it can be accessed . on *print qlist* line How to fix this 
error and what's reason behind this?


     

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0f9e1da1-7f2d-4b27-b6a0-091faa13914f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to