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)
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)
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 ItemCountView from orders.views import OrderList, CheckoutView, UserAddressCreateView, CheckoutFinalView, business_analysis, send_offer_email urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^$', include('products.urls')), url(r'^products/', include('products.urls')), url(r'^users/', include('users.urls')), url(r'^carts/', include('carts.urls')), url(r'^cart/count/$', ItemCountView.as_view(), name='item_count'), url(r'^checkout/$', CheckoutView.as_view(), name='checkout'), url(r'^checkout/final/$', CheckoutFinalView.as_view(), name='checkout_final'), url(r'^checkout/address/$', UserAddressCreateView.as_view(), name='user_address_create'), url(r'^orders/$', OrderList.as_view(), name='orders'), url(r'^analysis/$', business_analysis, name='analysis'), url(r'^sendoffer/$', send_offer_email.as_view(), name='send_offer'), ] if settings.DEBUG: urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT) urlpatterns += static(settings.MEDIA_URL,
from django.conf.urls import url from carts.views import CartView, ItemCountView, CheckoutView urlpatterns = [ url(r'^$', CartView.as_view(), name='cart'), url(r'^count/', ItemCountView.as_view(), name='cart_count'), url(r'^checkout/', CheckoutView.as_view(), name='checkout'), ]