from django.conf.urls import url from order.views import OrderPlaceView, OrderCommitView, OrderPayView, CheckPayView, CommentView urlpatterns = [ url(r'^place$', OrderPlaceView.as_view(), name='place'), # 订单页面 url(r'^commit$', OrderCommitView.as_view(), name='commit'), # 创建订单 url(r'^pay$', OrderPayView.as_view(), name='pay'), # 用户支付 url(r'^check$', CheckPayView.as_view(), name='check'), # 检测支付 url(r'^comment/(?P<order_id>\d+)$', CommentView.as_view(), name='comment'), # 订单评论 ]
from django.urls import path from order.views import OrderPlaceView, OrderCommitView app_name = 'order' urlpatterns = [ path('place', OrderPlaceView.as_view(), name='place'), # 购物车添加 path('commit', OrderCommitView.as_view(), name='commit'), # 订单创建 ]
from django.contrib import admin from django.urls import path, include from order.views import OrderPlaceView, OrderCommitView, OrderPayView, CheckPayView, CommentView urlpatterns = [ path("place_order", OrderPlaceView.as_view(), name="place"), # 提交订单页面显示 path("commit", OrderCommitView.as_view(), name="commit"), # 订单创建 path("pay", OrderPayView.as_view(), name="pay"), # 订单支付 path("check", CheckPayView.as_view(), name="check"), # 查询支付交易结果 path("check/<int:order_id>", CheckPayView.as_view(), name="check"), # 查询支付交易结果【测试】 path("comment/<int:order_id>", CommentView.as_view(), name="comment"), # 查询支付交易结果 ]
from django.urls import path, re_path from order.views import OrderPlaceView, OrderCommitView, OrderPayView, OrderCheckView, OrderCommentView urlpatterns = [ path('place/', OrderPlaceView.as_view(), name='place'), # 提交订单页面显示 re_path(r'^commit$', OrderCommitView.as_view(), name='commit'), # 订单提交 re_path(r'^pay$', OrderPayView.as_view(), name='pay'), # 订单支付 re_path(r'^check$', OrderCheckView.as_view(), name='check'), # 订单结果查询 re_path(r'^comment/(?P<order_id>.+)$', OrderCommentView.as_view(), name='comment') # 订单评论 ]
from django.urls import re_path from order.views import OrderPlaceView, OrderCommitView, OrderPayView, CheckPayView, CommentView app_name = 'order' urlpatterns = [ re_path(r'^place$', OrderPlaceView.as_view(), name='place'), # 提交订单页面显示 re_path(r'^commit$', OrderCommitView.as_view(), name='commit'), # 订单创建 re_path(r'^pay$', OrderPayView.as_view(), name='pay'), # 订单支付 re_path(r'^check$', CheckPayView.as_view(), name='check'), # 查询支付交易结果 re_path(r'^comment/(?P<order_id>.+)$', CommentView.as_view(), name='comment'), # 订单评论 ]
from django.conf.urls import url from order.views import OrderPlaceView, OrderCommitView, OrderPayView, CheckPayView, CommentView urlpatterns = [ url(r'^place$', OrderPlaceView.as_view(), name="place"), #提交订单页面显示 url(r'^commit$', OrderCommitView.as_view(), name="commit"), # 提交订单页面显示 url(r'^pay$', OrderPayView.as_view(), name="pay"), # 订单支付 url(r'^check$', CheckPayView.as_view(), name="check"), # 订单支付 url(r'^comment(?P<order_id>.+)$', CommentView.as_view(), name="comment") # 订单评论 ]
from django.conf.urls import url from order.views import OrderPlaceView, OrderCommitView urlpatterns = [ url('^place$', OrderPlaceView.as_view(), name='place'), # 提交订单页面显示 url('^commit', OrderCommitView.as_view(), name='commit'), # 订单创建 ]
from django.urls import path, include, re_path from order.views import OrderPlaceView, OrderCommitView, OrderPayView, CheckOrderView, CommentView app_name = 'order' urlpatterns = [ re_path(r'^place$', OrderPlaceView.as_view(), name='place'), # 订单提交页面的显示 re_path(r'^commit$', OrderCommitView.as_view(), name='commit'), # 订单生成页面 re_path(r'^pay$', OrderPayView.as_view(), name='pay'), # 订单支付 re_path(r'^check$', CheckOrderView.as_view(), name='check'), # 查询订单支付 re_path(r'^comment/(?P<order_id>\d+)$', CommentView.as_view(), name='comment'), # 评论 ]
from django.urls import path from order.views import OrderPlaceView, OrderCommitView app_name = "order" urlpatterns = [ path("place", OrderPlaceView.as_view(), name='place'), # 提交订单页面显示 path("commit", OrderCommitView.as_view(), name='commit'), # 订单创建 ]
from django.conf.urls import url from apps.order import views from order.views import OrderPlaceView, OrderCommitView, OrderPayView, CheckPayView, CommentView urlpatterns = [ url(r'^place$', OrderPlaceView.as_view(), name="place"), # 显示购物车结算页面 url(r'^commit$', OrderCommitView.as_view(), name="commit"), # 提交订单 url(r'^pay$', OrderPayView.as_view(), name="pay"), # 支付 url(r'^check$', CheckPayView.as_view(), name="check"), # 查询支付交易结果 url(r'^comment/(?P<order_id>\d+)$', CommentView.as_view(), name="comment"), # 评论 ]
from django.conf.urls import url, include from order.views import OrderPlaceView, OrderCommitView, OrderPayView, OrderCheckView urlpatterns = [ url(r"^place$", OrderPlaceView.as_view(), name="place"), # 订单详情 url(r"^commit$", OrderCommitView.as_view(), name="commit"), # 订单详情 url(r"^pay$", OrderPayView.as_view(), name="pay"), # 订单详情 url(r"^check$", OrderCheckView.as_view(), name="check"), # 订单详情 ]
from django.contrib import admin from django.urls import path, include from order.views import OrderPlaceView, OrderCommitView, OrderPayView, CheckPayView, CommentView app_name = "order" urlpatterns = [ path('place', OrderPlaceView.as_view(), name="orderplace"), path('commit', OrderCommitView.as_view(), name="ordercommit"), path('pay', OrderPayView.as_view(), name='pay'), path('check', CheckPayView.as_view(), name='check'), path('comment/<int:order_id>', CommentView.as_view(), name="comment") ]
from django.conf.urls import url, include from rest_framework.routers import DefaultRouter from order.views import OrderPlaceView, OrderViewSet, PaymentBack orderrouter = DefaultRouter() urlpatterns = [ url(r'^order_place', OrderPlaceView.as_view(), name='order_place_view'), url(r'^payment', PaymentBack.as_view(), name='payment_back') ] orderrouter.register(r'orders', OrderViewSet) # productrouter.register(r'shipping_option', ShippingOptionViewSet) urlpatterns += orderrouter.urls