from django.conf.urls import url from order.views import OrderPlaceView, OrderCommitView, OrderPayView, OrderCheckView, OrderCommentView 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'), # 支付状态检查 url(r'^comment/(?P<order_id>.+)$', OrderCommentView.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 path from order.views import OrderPlaceView, OrderCommitView, OrderPayView, CheckPayView, OrderCommentView app_name = 'apps.order' urlpatterns = [ path('place/', 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('comment/<int:order_id>', OrderCommentView.as_view(), name='comment'), # 查询支付交易的结果 ]
from django.conf.urls import url from order.views import OrderPlaceView,OrderCommitView,OrderPayView,CheckPayView,OrderCommentView 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+)/$', OrderCommentView.as_view(),name='comment') # 订单评论 ]
from django.contrib import admin from django.urls import path from django.urls import path,include,re_path from order.views import OrderPlaceView, OrderCommitView, OrderCommitView2, OrderPayView, OrderCheck, OrderCommentView\ , OrderDelete from django.conf.urls import url app_name = 'order' 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/$', OrderCheck.as_view(), name='check'),# 验证支付 url(r'^delete/$', OrderDelete.as_view(), name='delete'),# 删除订单 url(r'^comment/(?P<order_id>.+)/$', OrderCommentView.as_view(), name='comment'),# 验证支付 ]# [email protected]