Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/a/r/archfinch-HEAD/account/views.py   archfinch(Download)
from archfinch.utils import render_to_response, form_error_msg
from archfinch.main.models import Similarity
from archfinch.account.models import SignupForm, AuthenticationForm
from lazysignup.utils import is_lazy_user
 
def signup(request):
    if request.method == 'POST':
        form = SignupForm(request.POST)
            return HttpResponseRedirect("/")
    else:
        form = SignupForm()
    return render_to_response("account/signup.html",
        {'form': form},
    data = {'success': False}
    if request.method == 'POST':
        form = SignupForm(request.POST)
        if form.is_valid():
            new_user = form.save()