示例#1
0
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin

from carts.views import CartView, ItemCountView, CheckoutView, CheckoutFinalView
from orders.views import AddressSelectFormView, UserAddressCreateView, OrderList, OrderDetail
urlpatterns = [
	# Examples:
	url(r'^$', 'newsletter.views.home', name='home'),
	url(r'^contact/', 'newsletter.views.contact', name='contact'),
	url(r'^about/', 'ecommerce2.views.about', name='about'),
	# url(r'^blog/', include('blog.urls')),

	url(r'^admin/', include(admin.site.urls)),
	url(r'^accounts/', include('registration.backends.default.urls')),
	url(r'^products/', include('products.urls')),
	url(r'^categories/', include('products.urls_categories')),
	url(r'^orders/$', OrderList.as_view(), name='orders'),
	url(r'^orders/(?P<pk>\d+)/$', OrderDetail.as_view(), name='order_detail'),
	url(r'^cart/$', CartView.as_view(), name='cart'),
	url(r'^cart/count/$', ItemCountView.as_view(), name='item_count'),
	url(r'^checkout/$', CheckoutView.as_view(), name='checkout'),
	url(r'^checkout/address/$', AddressSelectFormView.as_view(), name='order_address'),
	url(r'^checkout/address/add/$', UserAddressCreateView.as_view(), name='user_address_create'),
	url(r'^checkout/final/$', CheckoutFinalView.as_view(), name='checkout_final'),
] 
if settings.DEBUG:
	urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
	urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
示例#2
0
from reportes.consultas import ReporteProductos, VentasDia, imprimir_ventas, practicas
                    

urlpatterns = [
    # Examples:
    url(r'^$', home, name='home'),
    url(r'^contact/$', contact, name='contact'),
    url(r'^about/$', about, name='about'),
    # url(r'^blog/', include('blog.urls')),

    url(r'^admin/', include(admin.site.urls)),
    url(r'^accounts/', include('registration.backends.default.urls')),
    url(r'^products/', include('products.urls')),
    url(r'^categories/', include('products.urls_categories')),
    url(r'^orders/$', OrderList.as_view(), name='orders'),
    url(r'^orders/(?P<pk>\d+)/$', OrderDetail.as_view(), name='order_detail'),
    url(r'^cart/$', CartView.as_view(), name='cart'),
    url(r'^cart/count/$', ItemCountView.as_view(), name='item_count'),
    url(r'^checkout/$', CheckoutView.as_view(), name='checkout'),
    url(r'^checkout/address/$', AddressSelectFormView.as_view(), name='order_address'),
    url(r'^checkout/address/add/$', UserAddressCreateView.as_view(), name='user_address_create'),
    url(r'^checkout/final/$', CheckoutFinalView.as_view(), name='checkout_final'),
    url(r'^consulta/$', ReporteProductos, name='reporte_productos'),
    url(r'^ventasdia/$', VentasDia, name='reporte_ventas'),
    url(r'^imprimirventas/$',imprimir_ventas,name='imprimir_ventas'),
    url(r'^practicas/$',practicas,name='practicas_reportlab    '),


]

if settings.DEBUG:
示例#3
0
from django.conf import settings
from django.conf.urls.static import static
from carts.views import CartView, ItemCountView, CheckoutView, CheckoutFinalView

from orders.views import AddressSelectFormView, UserAddressCreateView, OrderList, OrderDetail

urlpatterns = [
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', 'newsletter.views.home', name='home'),
    url(r'^contact/$', 'newsletter.views.contact', name='contact'),
    url(r'^about/$', 'eMarket.views.about', name='about'),
    url(r'^accounts/', include('registration.backends.default.urls')),
    #url(r'^$', 'products.views.home', name='home'),
    #url(r'^products/$', 'products.views.all', name='products'),
    url(r'^products/', include('products.urls')),
    url(r'^categories/', include('products.url_categories')),
    url(r'orders/$',OrderList.as_view(), name="orders"),
    url(r'orders/(?P<pk>\d+)/$',OrderDetail.as_view(), name="order_detail"),
    url(r'cart/$',CartView.as_view(), name="cart"),
    url(r'cart/count/$',ItemCountView.as_view(), name="item_count"),
    url(r'checkout/$', CheckoutView.as_view(), name="checkout"),
    url(r'^checkout/address/$', AddressSelectFormView.as_view(), name='order_address'),
    url(r'^checkout/address/add/$', UserAddressCreateView.as_view(), name='user_address_create'),
    url(r'^checkout/final/$', CheckoutFinalView.as_view(), name='checkout_final'),
]

if settings.DEBUG:

    urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
示例#4
0
 re_path(r'^categories/', include('products.urls_categories')),
 re_path(r'^orders/$', OrderList.as_view(), name='orders'),
 re_path(r'^orders/staff/$',
         StaffOrderListView.as_view(),
         name='staff-order-list'),
 re_path(r'^orders/staff/(?P<pk>\d+)/$',
         StaffOrderDetailView.as_view(),
         name='staff-order-detail'),
 re_path(r'^orders/staff/(?P<pk>\d+)/update$',
         StaffOrderUpdateView.as_view(),
         name='staff-order-update'),
 re_path(r'^orders/staff/customer/(?P<pk>\d+)/$',
         StaffCustomerDetailView.as_view(),
         name='staff-customer-detail'),
 re_path(r'^orders/(?P<pk>\d+)/$',
         OrderDetail.as_view(),
         name='order_detail'),
 re_path(r'^orders/(?P<pk>\d+)/generate-invoice/$',
         GeneratePDF.as_view(),
         name='order-generate-invoice'),
 re_path(r'^orders/(?P<pk>\d+)/check-in/$',
         OrderCheckinUpdateView.as_view(),
         name='order-generate-check-in'),
 re_path(r'^stripe-orders/',
         include("orders.urls", namespace='stripe-orders')),
 re_path(r'^cart/$', CartView.as_view(), name='cart'),
 re_path(r'^cart/pickup/$', CartPickupView.as_view(), name='cart-pickup'),
 re_path(r'^cart/pickup-time/create/$',
         pickuptime_create,
         name='cart-pickup-create'),
 re_path(r'^cart/time/$', CartTimeDisplayView.as_view(), name='cart_time'),
示例#5
0
from django.urls import path
from . import views
from orders.views import OrderList
from orders.views import OrderDetail
from orders.views import OrderUpdate
from orders.views import CreateOrder

urlpatterns = [
    path('list/', OrderList.as_view(), name='order-list'),
    path('create', CreateOrder.as_view(), name='create-order'),
    path('update/<slug:slug>/', OrderUpdate.as_view(success_url="/orders/list"), name='order-update'),
    path('<slug:slug>/', OrderDetail.as_view(), name='order-detail'),
]
示例#6
0
from django.urls import path

from orders.views import ClientOrderListView, OrderDetail, OrderCreateView, \
    DriverOrderListView

urlpatterns = [
    path('orders/', ClientOrderListView.as_view(), name='client_orders'),
    path('orders/<int:pk>/', OrderDetail.as_view(), name='client_order'),
    path('orders/create/', OrderCreateView.as_view(), name='order_create'),
    path('orders/driver/', DriverOrderListView.as_view(),
         name='driver_orders'),
]
示例#7
0
from django.conf.urls import url

from orders.views import (
    CartView,
    CheckoutView,
    OrderDetail,
    OrderInvoiceDetail,
    OrderAddressView,
    OrderTimeView,
    PaymentMethodView,
    PayUzcard,
)

urlpatterns = [
    url(r'^cart/$', CartView.as_view(), name='cart', ),
    url(r'^delivery-address/$', OrderAddressView.as_view(), name='address', ),
    url(r'^delivery-time/$', OrderTimeView.as_view(), name='time', ),
    url(r'^payment-method/$', PaymentMethodView.as_view(), name='payment_method', ),
    url(r'^checkout/$', CheckoutView.as_view(), name='checkout', ),
    url(r'^(?P<phone>[\w]+)/(?P<order_unique_id>[-\w]+)/$', OrderDetail.as_view(), name='order_detail', ),
    url(r'^(?P<phone>[\w]+)/(?P<order_unique_id>[-\w]+)/invoice/$',OrderInvoiceDetail.as_view(),
        name='order_invoice_detail', ),
    url(r'^(?P<phone>[\w]+)/(?P<order_unique_id>[-\w]+)/pay/$', PayUzcard.as_view(),
        name='payment_uzcard', ),
]
示例#8
0
    ProductRetrieveAPIView,
)

from rest_framework_jwt.views import obtain_jwt_token, refresh_jwt_token


urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^', include('newsletter.urls', namespace='newsletter')),
    url(r'^accounts/', include('registration.backends.default.urls')),
    url(r'^products/', include('products.urls', namespace='products')),
    url(r'^categories/', include(
        'products.urls_categories', namespace='categories')),
    url(r'^orders/$', OrderList.as_view(), name='orders'),
    url(r'^orders/(?P<pk>[0-9]+)/$',
        OrderDetail.as_view(), name='order_detail'),
    url(r'^cart/$', CartView.as_view(), name='cart'),
    url(r'^cart/count/$', ItemCountView.as_view(), name='item_count'),
    url(r'^checkout/$', CheckoutView.as_view(), name='checkout'),
    url(r'^checkout/address/$',
        AddressSelectFormView.as_view(), name='order_address'),
    url(r'^checkout/address/add/$',
        UserAddressCreateView.as_view(), name='user_address_create'),
    url(r'^checkout/final/$',
        CheckoutFinalView.as_view(), name='checkout_final'),

]


# API Patterns
urlpatterns += [
示例#9
0
    2. Add a URL to urlpatterns:  url(r'^blog/', include(blog_urls))
"""
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin

from carts.views import CartView,ItemCountView,CheckoutView,CheckoutFinalView
from orders.views import AddressSelectFormView,UserAddressCreateView,OrderList,OrderDetail

urlpatterns = [
    url(r'^$','newsletter.views.home',name='home'),
    url(r'^contact/$','newsletter.views.contact',name='contact'),
    url(r'^about/$','ecommerce2.views.about',name='about'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^accounts/', include('registration.backends.default.urls')),
    url(r'^products/', include('products.urls')),
    url(r'^categories/', include('products.urls_categories')),
    url(r'^orders/$',OrderList.as_view(), name="orders"),
    url(r'^orders/(?P<pk>\d+)$',OrderDetail.as_view(), name="order_detail"),
    url(r'^cart/$',CartView.as_view(), name="cart"),
    url(r'^cart/count/$',ItemCountView.as_view(), name="item_count"),
    url(r'^checkout/$',CheckoutView.as_view(), name="checkout"),
    url(r'^checkout/address/$', AddressSelectFormView.as_view(), name="order_address"),
    url(r'^checkout/address/add/$', UserAddressCreateView.as_view(), name="user_address_create"),
    url(r'^checkout/final/$', CheckoutFinalView.as_view(), name="checkout_final"),
]

if settings.DEBUG:
    urlpatterns += static(settings.STATIC_URL,document_root=settings.STATIC_ROOT)
    urlpatterns += static(settings.MEDIA_URL,document_root=settings.MEDIA_ROOT)
示例#10
0
from django.urls import path
from orders.views import OrdersView, OrderList, OrderDetail

urlpatterns = [
    path('', OrdersView.as_view(), name='orders-index'),
    path('api/orders/', OrderList.as_view(), name='order-list'),
    path('api/orders/<int:pk>/', OrderDetail.as_view(), name='order-detail'),
]
示例#11
0
from django.urls import path, re_path, include
from django.views.generic import TemplateView
from django.contrib.auth import views as auth_views

from . import views
from orders.views import OrdersList, OrderDetail

urlpatterns = [
    path("", views.index, name="index"),
    path('register/', views.register_view, name='register'),
    path('login/', views.login_view, name='login'),
    path('logout/', views.logout_view, name='logout'),
    path('profile/',
         TemplateView.as_view(template_name="orders/profile.html"),
         name='profile'),
    path('collect_pizza/', views.collect_pizza, name="collect_pizza"),
    path('collect_sub/', views.collect_sub, name="collect_sub"),
    path('collect_pasta/', views.collect_pasta, name="collect_pasta"),
    path('collect_salad/', views.collect_salad, name="collect_salad"),
    path('collect_dinner_platter/',
         views.collect_dinner_platter,
         name="collect_dinner_platter"),
    path('remove_from_card/', views.remove_from_card, name="remove_from_card"),
    path('submit_order/', views.submit_order, name="submit_order"),
    path('orders/', OrdersList.as_view(), name="orders"),
    path('order/<int:pk>/', OrderDetail.as_view(), name="order-detail"),
    path('order-done/', views.order_done, name="order-done"),
    # path('change-password/', auth_views.PasswordChangeView.as_view(template_name='orders/change-password.html')),
    # path('accounts/', include('django.contrib.auth.urls')),
]
示例#12
0
#!/usr/bin/env python
# encoding: utf-8


"""
@version: ??
@author: liangliangyy
@license: MIT Licence 
@contact: [email protected]
@site: https://www.lylinux.net/
@software: PyCharm
@file: urls.py
@time: 2018/6/10 下午12:16
"""

from django.urls import path
from orders.views import OrderList, OrderDetail, BlessingDetail, update_show_confession_wall

app_name = "orders"

urlpatterns = [
    path(r'order', OrderList.as_view(), name='orderlist'),
    path(r'orderdetail/<str:pk>', OrderDetail.as_view(), name='orderdetail'),
    path('blessing', BlessingDetail.as_view(), name='blessing'),
    path('updatewall', update_show_confession_wall, name='updatewall')
]
示例#13
0
from django.urls import include, path

from orders.views import Orders, OrderDetail

urlpatterns = [
    path('orders/', Orders.as_view(), name='orders'),
    path('orders/<str:order_id>/', OrderDetail.as_view(), name='order-detail'),
    path('api-auth/', include('rest_framework.urls',
                              namespace='rest_framework'))
]