def regi(request): if request.method == "POST": p = UsForm(request.POST) if p.is_valid(): p.save() return redirect('/lg') p = UsForm() return render(request, 'html/register.html', {'u': p})
def regi(r): if r.method == "POST": p = UsForm(r.POST) if p.is_valid(): p.save() return redirect('/lg') p = UsForm() return render(r, 'stc/register.html', {'u': p})