old_contents: from django.shortcuts import render
  
  # Create your views here.
  
new_contents: from django.shortcuts import render
  
  from .models import OrderItem
  from .forms import OrderCreateForm
  from ..cart.cart import Cart
  
  
  def order_create(request):
      cart = Cart(request)
      form = OrderCreateForm(request.POST or None)
      if form.is_valid():
          order = form.save()
          for item in cart:
              OrderItem.objects.create(order=order,
                                       product=item['product'],
                                       price=item['price'],
                                       quantity=item['quantity'])
              cart.clear()
              return render(request, 'orders/created.html', {'order': order})
  
      context = {'cart': cart, 'form': form}
      return render(request, 'orders/create.html', context)
  
subject: Add order_create view