in html form <form action=” method="POST"> <input type="text" id=’txtName’ name="txtName" value=txtName> <button value="submit">Submit</button> </form> in view # -*- coding: utf-8 -*- import csv from django.http import HttpResponse from django.shortcuts import render_to_response def index(request, name=""): model = {} print ‘enter index’ print request.POST if request.POST: print ‘post’ [...]
↧