request.post.get django code example

Example 1: httpresponse django

from django.http import HttpResponse

Example 2: set http response content type django

reponse = HttpResponse(content)
response['Content-Type'] = 'application/json' # or application/text, etc.

# one-line usage
reponse = HttpResponse(content, content_type:'application/json')

Example 3: request.post django

Read about request objects that your views receive: https://docs.djangoproject.com/en/dev/ref/request-response/#httprequest-objects

Also your hidden field needs a reliable name and then a value:

<input type="hidden" name="title" value="{{ source.title }}">
Then in a view:

request.POST.get("title", "")