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.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, OrderPayView, CheckPayView, 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', CheckPayView.as_view(), name='check'), # 查询支付交易结果 path('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,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.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'), # 订单评论 ]
#-*-coding:utf-8-*- from django.contrib import admin from django.urls import path from user.views import RegisterView, LoginView, ActiveView, LoginoutView, UserInfoView, UserOrderView, UserSiteView from order.views import OrderPayView, CheckPayView app_name = 'user' urlpatterns = [ path('register/', RegisterView.as_view(), name='register'), path('login/', LoginView.as_view(), name='login'), path('active/str<token>/', ActiveView.as_view(), name='active'), path('logout/', LoginoutView.as_view(), name='logout'), path('', UserInfoView.as_view(), name='user'), path('order/int<page>/', UserOrderView.as_view(), name='order'), path('address/', UserSiteView.as_view(), name='address'), path('pay/', OrderPayView.as_view(), name='pay'), path('check/', CheckPayView.as_view(), name='check') ]
"""dailyfresh URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based views 1. Add an import: from other_app.views import Home 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home') Including another URLconf 1. Import the include() function: from django.urls import include, path 2. Add a URL to urlpatterns: path('blog/', include('blog.urls')) """ from django.contrib import admin from django.urls import path, re_path from order.views import OrderPlaceView, OrderCommitView, OrderPayView, CheckPayView, CommentView app_name = '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'), # 查看订单支付状态 re_path('comment/(?P<order_id>.+)$', CommentView.as_view(), name='comment'), # 订单评论 ]
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 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>.+)$', OrderCommentView.as_view(), name='comment'), # 订单评论 ]
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='place'), path('commit', OrderCommitView.as_view(), name='commit'), # 创建订单 path('pay', OrderPayView.as_view(), name='pay'), # 创建订单 path('check', CheckPayView.as_view(), name='check'), # 检查订单 path('comment/<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, 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'), # 订单评价 ]