コード例 #1
0
ファイル: urls.py プロジェクト: rahulyhg/eCommerce-Web-App
    url(r'^address/$', RedirectView.as_view(url='/addresses')),
    url(r'^addresses/$', AddressListView.as_view(), name='addresses'),
    url(r'^addresses/create/$', AddressCreateView.as_view(), name='address-create'),
    url(r'^addresses/(?P<pk>\d+)/$', AddressUpdateView.as_view(), name='address-update'),
    url(r'^contact/$', contact_page, name='contact'),
    url(r'^login/$', LoginView.as_view(), name='login'),
    url(r'^checkout/address/create/$', checkout_address_create_view, name='checkout_address_create'),
    url(r'^checkout/address/reuse/$', checkout_address_reuse_view, name='checkout_address_reuse'),
    url(r'^register/guest/$', GuestRegisterView.as_view(), name='guest_register'),
    url(r'^logout/$', LogoutView.as_view(), name='logout'),
    url(r'^api/cart/$', cart_detail_api_view, name='api-cart'),
    url(r'^cart/', include("carts.urls", namespace='cart')),
    url(r'^billing/payment-method/$', payment_method_view, name='billing-payment-method'),
    url(r'^billing/payment-method/create/$', payment_method_createview, name='billing-payment-method-endpoint'),
    url(r'^register/$', RegisterView.as_view(), name='register'),
    url(r'^bootstrap/$', TemplateView.as_view(template_name='bootstrap/example.html')),
    url(r'^library/$', LibraryView.as_view(), name='library'),
    url(r'^orders/', include("orders.urls", namespace='orders')),
    url(r'^products/', include("products.urls", namespace='products')),
    url(r'^search/', include("search.urls", namespace='search')),
    url(r'^settings/$', RedirectView.as_view(url='/account')),
    url(r'^settings/email/$', MarketingPreferenceUpdateView.as_view(), name='marketing-pref'),
    url(r'^webhooks/mailchimp/$', MailchimpWebhookView.as_view(), name='webhooks-mailchimp'),
    url(r'^admin/', admin.site.urls),
]


if settings.DEBUG:
    urlpatterns = urlpatterns + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
    urlpatterns = urlpatterns + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
コード例 #2
0
      checkout_address_create_view,
      name="checkout_address_create"),
 path('checkout/address/reuse/',
      checkout_address_reuse_view,
      name="checkout_address_reuse"),
 path('analytics/sales/', SalesView.as_view(), name="sales-analytics"),
 path('analytics/sales/data/',
      SalesAjaxView.as_view(),
      name="sales-analytics-data"),
 path('bootstrap/',
      TemplateView.as_view(template_name='bootstrap/example.html')),
 path('login/', LoginView.as_view(), name="login"),
 path('register/guest', GuestRegisterView.as_view(), name="guest_register"),
 path('register/', RegisterView.as_view(), name='register'),
 path('logout/', LogoutView.as_view(), name='logout'),
 path('library/', LibraryView.as_view(), name='library'),
 path('billing/payment-method/',
      paymend_method_view,
      name='billing-payment-method'),
 path('billing/payment-method/create/',
      paymend_method_create_view,
      name='billing-payment-method-endpoint'),
 path('cart/', include(('carts.urls', 'carts'), namespace='cart')),
 path('api/cart/', cart_detail_api_view, name='api-cart'),
 path('products/',
      include(('products.urls', 'products'), namespace='products')),
 path('orders/', include(('orders.urls', 'orders'), namespace='orders')),
 path('search/', include(('search.urls', 'search'), namespace='search')),
 path('settings/', RedirectView.as_view(url="/account")),
 path('settings/email/',
      MarketingPrefenceUpdateView.as_view(),
コード例 #3
0
    path('accounts/', RedirectView.as_view(url = '/account')),
    path('account/', include('accounts.urls', namespace = 'accounts')),
    path('accounts/', include('accounts.passwords.urls')),
    path('login/', LoginView.as_view(), name = 'login'),
    # path('login/', login_page, name = 'login'),
    path('register/guest/', GuestRegisterView.as_view(), name = 'guest_register'),
    # path('register/guest/', guest_register_view, name = 'guest_register'),
    path('checkout/address/create/', checkout_address_create_view, name = 'checkout_address_create'),
    path('checkout/address/reuse/', checkout_address_reuse_view, name = 'checkout_address_reuse'),
    path('api/cart/', cart_detail_api_view, name = 'api_cart'),
    path('api/cart/quantity/', cart_quantity_api_view, name = 'api_cart_quantity'),
    path('logout/', LogoutView.as_view(), name = 'logout'),
    path('billing/payment-method/', payment_method_view, name = 'billing-payment-method'),
    path('billing/payment-method/create/', payment_method_createview, name = 'billing-payment-method-endpoint'),
    path('register/', RegisterView.as_view(), name = 'register'),
    # path('register/', register_page, name = 'register'),
    path('products/', include('products.urls', namespace = 'products')),
    path('orders/', include('orders.urls', namespace = 'orders')),
    path('library/', LibraryView.as_view(), name = 'digital_library'),
    path('search/', include('search.urls', namespace = 'search')),
    path('cart/', include('carts.urls', namespace = 'carts')),
    path('settings/', RedirectView.as_view(url = '/account')),
    path('settings/email/', MarketingPreferenceView.as_view(), name = 'marketing_pref'),
    path('webhooks/mailchimp/', MailchimpWebhookView.as_view(), name = 'webhooks-mailchimp'),
    path('admin/', admin.site.urls),
]

if settings.DEBUG:
    urlpatterns = urlpatterns + static(settings.STATIC_URL, document_root = settings.STATIC_ROOT)
    urlpatterns = urlpatterns + static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT)
コード例 #4
0
    url(r'^addresses/create/$', AddressCreateView.as_view(), name='address-create'),
    url(r'^addresses/(?P<pk>\d+)/$', AddressUpdateView.as_view(), name='address-update'),
    url(r'^analytics/sales/$', SalesView.as_view(), name='sales-analytics'),
    url(r'^analytics/sales/data/$', SalesAjaxView.as_view(), name='sales-analytics-data'),
    url(r'^contact/$', contact_page, name='contact'),
    url(r'^login/$', LoginView.as_view(), name='login'),
    url(r'^checkout/address/create/$', checkout_address_create_view, name='checkout_address_create'),
    url(r'^checkout/address/reuse/$', checkout_address_reuse_view, name='checkout_address_reuse'),
    url(r'^register/guest/$', GuestRegisterView.as_view(), name='guest_register'),
    url(r'^logout/$', LogoutView.as_view(), name='logout'),
    url(r'^api/cart/$', cart_detail_api_view, name='api-cart'),
    url(r'^cart/', include("carts.urls", namespace='cart')),
    url(r'^billing/payment-method/$', payment_method_view, name='billing-payment-method'),
    url(r'^billing/payment-method/create/$', payment_method_createview, name='billing-payment-method-endpoint'),
    url(r'^register/$', RegisterView.as_view(), name='register'),
    url(r'^bootstrap/$', TemplateView.as_view(template_name='bootstrap/example.html')),
    url(r'^library/$', LibraryView.as_view(), name='library'),
    url(r'^orders/', include("orders.urls", namespace='orders')),
    url(r'^products/', include("products.urls", namespace='products')),
    url(r'^search/', include("search.urls", namespace='search')),
    url(r'^settings/$', RedirectView.as_view(url='/account')),
    url(r'^settings/email/$', MarketingPreferenceUpdateView.as_view(), name='marketing-pref'),
    url(r'^webhooks/mailchimp/$', MailchimpWebhookView.as_view(), name='webhooks-mailchimp'),
    url(r'^admin/', admin.site.urls),
]


if settings.DEBUG:
    urlpatterns = urlpatterns + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
    urlpatterns = urlpatterns + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
コード例 #5
0




urlpatterns = [
    path('admin/', admin.site.urls),

    path("", home, name="home"),

    path('about', about_page, name="about"),
    path('contact', contact_page, name="contact"),
    path('bootstrap', TemplateView.as_view(template_name="bootstrap/example.html")),
    path('retour', TemplateView.as_view(template_name="bootstrap/retour.html")),

    path('library', LibraryView.as_view(), name="library"),









    path('analytics/', include("analytics.urls", namespace="analytics")),
    path('products/', include("products.urls", namespace="products")),
    path('search/', include("search.urls", namespace="search")),
    path('cart/', include("carts.urls", namespace="carts")),

    path('account/', include("accounts.urls", namespace="accounts")),
コード例 #6
0

urlpatterns = [
	url(r'^$', home_page, name="home"),
	url(r'^about/$', about_page, name="about"),
	# url(r'^accounts', RedirectView.as_view(url='/account')),
	url(r'^contact/$', contact_page, name="contact"),
	url(r'^account/', include(("accounts.urls","accounts"), namespace="account")),
	url(r'^accounts/', include(("accounts.passwords.urls","passwords"), namespace="password")),
	url(r'^orders/', include(("orders.urls","orders"), namespace="orders")),
	re_path(r'^password/change/done/$',auth_views.PasswordChangeDoneView.as_view(),name='password_change_done'),
	url(r'^login/$', LoginView.as_view(), name="login"),
	url(r'^checkout/address/create/$', checkout_address_create_view, name="checkout_address_create"),
	url(r'^checkout/address/reuse/$', checkout_address_reuse_view, name="checkout_address_reuse"),
	url(r'^register/guest/$', GuestRegisterView.as_view(), name="guest_register"),
	url(r'^library/$', LibraryView.as_view(), name="library"),
	url(r'^logout/$', LogoutView.as_view(), name="logout"),
	url(r'^api/cart/$', cart_detail_api_view, name="api-cart"),
	url(r'^cart/', include(("carts.urls","carts"), namespace="cart")),
	url(r'^billing/payment-method/$', payment_method_view, name="billing-payment-method"),
	url(r'^billing/payment-method/create/$', payment_method_createview, name="billing-payment-method-endpoint"),
	url(r'^register/$', RegisterView.as_view(), name="register"),
	url(r'^products/', include(("products.urls","products"), namespace="products")),
	url(r'^search/', include(("search.urls","search"), namespace="search")),
	# url(r'^settings/email/$', MarketingPrefereceUpdateView.as_view(), name='marketing-pref'),
	# url(r'^featured/$', ProductFeaturedListView.as_view()),
	# url(r'^featured/(?P<pk>\d+)/$', ProductFeaturedDetailView.as_view()),
	# # url(r'^products/(?P<pk>\d+)/$', ProductDetailView.as_view()),
	# url(r'^products/(?P<slug>[\w-]+)/$', ProductDetailSlugView.as_view()),
    url(r'^jet/dashboard/', include('jet.dashboard.urls', 'jet-dashboard')),
    url(r'^jet/', include('jet.urls', 'jet')),