def adduser(request): if request.method == 'POST': form = UserCreationFormExtended(request.POST) if form.is_valid(): form.save() return HttpResponse('<p>success</p>') else: form = UserCreationFormExtended() return render_to_response("registration/register.html", {'form': form, 'editing': False} )
def adduser(request): if request.method == 'POST': form = UserCreationFormExtended(request.POST) if form.is_valid(): form.save() return HttpResponse('<p>success</p>') else: form = UserCreationFormExtended() return render_to_response("registration/register.html", { 'form': form, 'editing': False })