If this is a Django application, then using CGI in any way makes absolutely no sense. I assume that pod_available
is being called with a HttpRequest
object passed to it, so if you want to read the request data, you have to access that object to get it.
You can do that by accessing they key—'dd'
in this case—of the object:
def pod_available(request):
dat = request['dd']
return HttpResponse("<html><body>Hello<em>" + str(dat) + "</em></body></html>")
In any way, this is not a CGI application, so don’t use any CGI stuff in there.