Django form “takes exactly 1 argument (2 given) ” error - possibly related to CSRF?
问题 I am attempting a fairly simple form on Django 1.3, and am trying to understand how CSRF works. I think I've followed the three steps detailed on the Django site, but am still unable to make the form work. The form displays when the URL is loaded, however upon hitting the submit button, I get the following error: TypeError at /txt/ txt() takes exactly 1 argument (2 given) Here's the actual code: views.py: from django.http import HttpResponse from django.shortcuts import render_to_response,