-
-
Save dstanek/4381225 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from myapp.forms import MyForm | |
def my_view(request): | |
form = MyForm(request.POST or None) | |
if form.is_valid(): | |
name = form.cleaned_data['name'] | |
email = form.cleaned_data['email'] | |
# do something great with that data | |
return render(request, 'myapp/myform.html', { | |
'form': form | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment