Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #18614 -- Added missing imports in code samples.

  • Loading branch information...
commit 7d06f975fe445f0393455b3eb9ec17dbe04f2ec3 1 parent a875f61
@apollo13 apollo13 authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  docs/topics/forms/index.txt
3  docs/topics/forms/index.txt
@@ -91,6 +91,9 @@ The standard pattern for processing a form in a view looks like this:
.. code-block:: python
+ from django.shortcuts import render
+ from django.http import HttpResponseRedirect
def contact(request):
if request.method == 'POST': # If the form has been submitted...
form = ContactForm(request.POST) # A form bound to the POST data

0 comments on commit 7d06f97

Please sign in to comment.
Something went wrong with that request. Please try again.