6
0

views.py 314 B

123456789
  1. from django.shortcuts import redirect, render
  2. from webservice_running.forms import OrderRegForm
  3. def order_reg(request):
  4. if request.method == 'POST':
  5. form = OrderRegForm(request.POST)
  6. if form.is_valid():
  7. form.save()
  8. return render(request, 'webservice/order_reg.html', {'form': form})