from django.shortcuts import redirect, render from webservice_running.forms import OrderRegForm def order_reg(request): if request.method == 'POST': form = OrderRegForm(request.POST) if form.is_valid(): form.save() return render(request, 'webservice/order_reg.html', {'form': form})