title: The view orders.views.order_create didn't return an HttpResponse object. It returned None instead
body: <p>The view orders.views.order_create didn't return an HttpResponse object. It returned None instead.</p>
  
  <p>I tried everything and still get this error I think that the problem is with the urls but i am not sure.
  This is the views.py for the order checkout.
  I get the error when I click the checkout everything else is working and only the checkout is giving an error.</p>
  
  <pre><code>from django.shortcuts import render
  from django.template import loader
  from .models import OrderItem
  from .forms import OrderCreateForm
  from cart.cart import Cart
  
  def order_create(request):
      cart = Cart(request)
  
      if request.method == 'POST':
          form = OrderCreateForm(request.POST)
          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})
  
      else:
          form = OrderCreateForm()
      return render(request, 'orders/create.html', {'cart': cart, 'form':form})
  </code></pre>
  
  <p>the base urls.py</p>
  
  <pre><code>from django.conf.urls import url, include
  
  from . import views
  
  urlpatterns = [
      url(r'^cart/', include('cart.urls', namespace='cart')),
      url(r'^orders/', include('orders.urls', namespace='orders')),
      url(r'^$', views.index, name='index'),
      url(r'^(?P&lt;product_id&gt;[0-9a-f-]+)/$', views.detail, name="detail"),
  ]
  </code></pre>
  
  <p>and the order app urls.py</p>
  
  <pre><code>from django.conf.urls import url
  from . import views
  
  urlpatterns = [
      url(r'^create/$', views.order_create, name='order_create'),
  ]
  </code></pre>
  
  <p>the url in localhost should be 127.0.0.1:8000/orders/create
  and the create.html and created.html are in the templates folder in the market folder. I would kindly provide any other information if needed to help me fix the bug.</p>