from django.conf.urls import url from apps.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.urls import path from apps.order.views import OrderPlaceView, OrderCommitView, OrderPayView, OrderCheckView, CommentView urlpatterns = [ path('place', OrderPlaceView.as_view(), name='place'), # 显示提交订单页面 path('commit', OrderCommitView.as_view(), name='commit'), # 执行提交订单操作 path('pay', OrderPayView.as_view(), name='pay'), # 订单支付 path('check', OrderCheckView.as_view(), name='ckeck'), # 查询支付结果 path('comment/<order_id>', CommentView.as_view(), name='comment'), # 订单评论 ]
from django.conf.urls import url from apps.order.views import OrderIndexView,CreateOrderView,UserCenterOrder,OrderPayView,CheckPayView urlpatterns = [ #订单首页 url(r'^order_index',OrderIndexView.as_view()), #创建订单 url(r'^create_order',CreateOrderView.as_view()), #用户中心订单 url(r'^user_center_order',UserCenterOrder.as_view()), #Alipay支付 url(r'^pay',OrderPayView.as_view()), #检测订单是否支付成功 url(r'^check',CheckPayView.as_view()), ]
from django.urls import path from apps.order.views import OrderPlaceView, OrderCommitView, OrderPayView, OrderCheckView, CommentView urlpatterns = [ path("place", OrderPlaceView.as_view(), name="place"), path("commit", OrderCommitView.as_view(), name="commit"), path("pay", OrderPayView.as_view(), name="pay"), path("check", OrderCheckView.as_view(), name="check"), path("comment/<int:order_id>", CommentView.as_view(), name="comment"), ]
from django.urls import re_path from apps.order.views import OrderPlaceView, OrderCommitView, OrderPayView, OrderCommentView app_name = "order" urlpatterns = [ re_path(r'^place$', OrderPlaceView.as_view(), name='place'), # display order page re_path(r'^commit$', OrderCommitView.as_view(), name='commit'), # create order re_path(r'^pay$', OrderPayView.as_view(), name='pay'), # pay order re_path(r'^comment/(?P<order_id>.+)$', OrderCommentView.as_view(), name='comment'), # order comment ]
from django.urls import path, re_path from apps.order.views import OrderPlaceView, OrderCommitView1, OrderCommitView2, OrderPayView, OrderCheckView urlpatterns = [ re_path('^place$', OrderPlaceView.as_view(), name="place"), re_path('^commit$', OrderCommitView2.as_view(), name="commit"), re_path('^pay', OrderPayView.as_view(), name="pay"), re_path('^check$', OrderCheckView.as_view(), name="check"), ]