コード例 #1
0
ファイル: urls.py プロジェクト: rzhaxibayev/ecommerce-2
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 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)
コード例 #3
0
ファイル: urls.py プロジェクト: abhismvit/django-estore
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/$', 'django-estore.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:
コード例 #4
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'),
]
コード例 #5
0
ファイル: urls.py プロジェクト: Erkinumur/customs_project
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'),
]
コード例 #6
0
ファイル: urls.py プロジェクト: MamatmurodovA/stroyshop
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', ),
]
コード例 #7
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 += [
コード例 #8
0
ファイル: urls.py プロジェクト: square84/ecommerce
    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)
コード例 #9
0
ファイル: urls.py プロジェクト: jzarnstorff/django_projects
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'),
]
コード例 #10
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')),
]
コード例 #11
0
ファイル: urls.py プロジェクト: XiaoBiaoBai/xiaobiaobai.api
#!/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')
]
コード例 #12
0
ファイル: urls.py プロジェクト: ripiuk/bitmex-orders
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'))
]