示例#1
0
    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
    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)
示例#3
0
         name='guest_register'),
 re_path(r'^logout/$', LogoutView.as_view(), name='logout'),
 re_path(r'^register/$', RegisterView.as_view(), name='register'),
 re_path(r'^contact/$', contact, name='contact'),
 re_path(r'^billing/payment-method/$',
         payment_method_view,
         name='billing-payment-method'),
 re_path(r'^billing/payment-method/create/$',
         payment_method_createview,
         name='billing-payment-method-endpoint'),
 re_path(r'^settings/$', RedirectView.as_view(url='account')),
 re_path(r'^settings/email/$',
         MarketingPreferenceUpdateView.as_view(),
         name='marketing-pref'),
 re_path(r'^webhooks/mailchimp/$',
         MailchimpWebhookView.as_view(),
         name='webhooks-mailchimp'),
 re_path(r'^analytics/sales/$', SalesView.as_view(),
         name='sales-analytics'),
 re_path(r'^analytics/sales/data/$',
         SalesAjaxView.as_view,
         name='sales-analytics-data'),
 re_path(r'^library/$', LibraryView.as_view(), name='library'),
 path('admin/', admin.site.urls),
 re_path(r'^products/', include("products.urls", namespace='products')),
 re_path(r'^search/', include("search.urls", namespace='search')),
 re_path(r'^api/cart/$', cart_detail_api_view, name='api-cart'),
 re_path(r'^cart/', include("carts.urls", namespace='cart')),
 # re_path(r'^accounts/login/$', RedirectView.as_view(url='/login')),
 re_path(r'^accounts/$', RedirectView.as_view(url='/account')),
 re_path(r'^account/', include("accounts.urls", namespace='accounts')),
示例#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)