When sending a request, I get 403? Why?
def index(request): if 'q' in request.POST: q = request.POST['q'] return render_to_response('index.html', {'q': q} ) else: return render_to_response('index.html', {'q': 'error'} )
Here's a look if that:
{{ q }} <form action="" method="POST" /> <input type="text" name="q" /> <input type="submit"> </form>
tell me ...