def create(request): form = Edit_Form(request.POST) if form.is_valid(): form.save() return HttpResponseRedirect('/app/') else: return
def update(request, user_id): user = User.objects.get(id=user_id) form = Edit_Form(request.POST, instance=user) if form.is_valid(): form.save() return HttpResponseRedirect('/app/')