コード例 #1
0
ファイル: urls.py プロジェクト: samuelbutton/ecommerce
from django.urls import path, re_path

from search.views import (
    SearchProductView, )

urlpatterns = [
    path('', SearchProductView.as_view(), name="query"),
]
コード例 #2
0
from products.views import product_list_view, product_detail_view
from accounts.views import login_page, register_page, index
from search.views import SearchProductView
from cart.views import cart_home, cart_update, checkout_home, checkout_success
from orders.views import order_home

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^product/(?P<slug>[\w-]+)/$',
        product_detail_view,
        name='product_detail_view'),
    url(r'^products/$', product_list_view, name='product_list_view'),
    url(r'^accounts/$', login_page, name='login_page'),
    url(r'^accounts/register$', register_page, name='register_page'),
    url(r'^$', index, name='index'),
    url(r'^search/$', SearchProductView.as_view(), name='query'),
    url(r'^cart/$', cart_home, name='cart_home'),
    url(r'^cart_update/$', cart_update, name='cart_update'),
    url(r'^checkout/$', checkout_home, name='checkout'),
    url(r'^checkout/success$', checkout_success, name='success'),
    url(r'^order/$', order_home, name='order'),
]

#Admin Custom site headers and titles
admin.site.site_header = "GetActive Admin Portal"
admin.site.site_title = "GetActive Admin Portal"
admin.site.index_title = ""

if settings.DEBUG:
    urlpatterns = urlpatterns + static(settings.STATIC_URL,
                                       document_root=settings.STATIC_ROOT)
コード例 #3
0
from django.urls import path
from search.views import (
    SearchProductView, )

app_name = 'tags'

urlpatterns = [
    path('', SearchProductView.as_view(), name='query'),
]
コード例 #4
0
ファイル: urls.py プロジェクト: thejasmeetsingh/gamexs
from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from django.views.generic import TemplateView

from search.views import SearchProductView

urlpatterns = [
    path('admin/', admin.site.urls),
    path('', include('products.urls')),
    path('accounts/', include('accounts.urls')),
    path('cart/', include('cart.urls')),
    path('addresses/', include('addresses.urls')),
    path('billing/', include('billing.urls')),
    path('search/', SearchProductView.as_view(), name='search'),
    path('success/',
         TemplateView.as_view(template_name='success.html'),
         name='success'),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
コード例 #5
0
from django.urls import re_path

from search.views import SearchProductView

urlpatterns = [
    re_path(r'^$', SearchProductView.as_view(), name='query'),
]
コード例 #6
0
ファイル: urls.py プロジェクト: vishavjeet26/ecommerce
from django.urls import path
from search.views import SearchProductView

urlpatterns = [
    path('', SearchProductView.as_view(), name='list'),
]
コード例 #7
0
from django.conf.urls import url

from search.views import (SearchProductView)

urlpatterns = [
    url(r'^$', SearchProductView.as_view(), name="query"),
]
コード例 #8
0
ファイル: urls.py プロジェクト: sandeshBthapa/E-commerce
from django.urls import path, include
from search.views import SearchProductView

app_name = "search"
urlpatterns = [
    path('search/', SearchProductView.as_view(), name="search_product"),
]
コード例 #9
0
from django.urls import path

from search.views import SearchProductView

urlpatterns = [
	path('', SearchProductView.as_view(), name="search")
]
コード例 #10
0
from django.conf.urls import url
from products.views import ProductListView
from search.views import SearchProductView

app_name = 'search'

urlpatterns = [
    url(r'^$', SearchProductView.as_view(), name='search_product_list'),
]