This is very useful for me when updating the area using ajax. So I thought it would be nice to share it:
First, you import your own template tag that you encoded in your view file.
from your_app_name.templatetags import your_tag_name
And then you use it like this:
return HttpResponse(your_tag_name.your_method(context))
This worked for me, and I received the template tag as a response from the server and updated the div with this result.
Cem baykam
source share