1👍
✅
You’re not returning anything from dispatch
in your TwitterNetworkView
mixin. With no return
statement, the method returns None
rather than an HttpResponse
. One fix would be to have it return the result of super(TwitterNetworkView, self).dispatch(request, *args, **kwargs)
.
0👍
You need to return an HttpResponse object.
from django.http import HttpResponse
...
class TwitterExampleView(TwitterPagedDefineParams, TwitterNetworkView):
def get(self, request, *args, **kwargs):
return HttpResponse("blahhhhh")
Take a look at https://docs.djangoproject.com/en/1.7/intro/tutorial03/#write-your-first-view
Source:stackexchange.com