I had the same issue, and fixed it by explicitly adding an is_ajax check in the views.py file, for example:
class MyIndex(CreateView):
form_class = CommentForm
template_name = 'my/index.html'
page_template = 'my/comments.html'
def get(self, request, *args, **kwargs):
if request.is_ajax():
self.template_name = self.page_template
return super(MyIndex, self).get(request, *args, **kwargs)
def get_context_data(self, **kwargs):
context = super(MyIndex, self).get_context_data(**kwargs)
context.update({
'comments': Comment.objects.order_by('-id').filter(parent=None),
'page_template': self.page_template,
})
return context
You also might need to use render/render_to_response rather than returning the default get method though, it depends on how your page is structured.