Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ee7c2f6b5b
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (13 sloc) 0.501 kb
# Create your views here.
from django.shortcuts import render_to_response, redirect
from django.template.context import RequestContext
from django.core.urlresolvers import reverse
from profiles.forms import ContactFormSet
def home(request):
formset = ContactFormSet(request.POST or None)
if formset.is_valid():
formset.save()
return redirect(reverse("home"))
return render_to_response("profiles/index.html", RequestContext(request, {
'formset': formset,
}))
Jump to Line
Something went wrong with that request. Please try again.