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)
urlpatterns = [ # Examples: url(r'^$', home, name='home'), url(r'^contact/$', contact, name='contact'), url(r'^about/$', 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'), url(r'^consulta/$', ReporteProductos, name='reporte_productos'), url(r'^ventasdia/$', VentasDia, name='reporte_ventas'), url(r'^imprimirventas/$',imprimir_ventas,name='imprimir_ventas'), url(r'^practicas/$',practicas,name='practicas_reportlab '), ] 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.urls import url, include from . import views from orders.views import AddressFormView, UserAddressCreateView, ConfirmOrderView, OrdersList urlpatterns = [ url(r'^$', views.CartCreateView.as_view(), name='create_cart'), url(r'^view/$', views.CartDetailView.as_view(), name='cart_detail'), url(r'^deco_detail/$', views.HomeDecoDetailView.as_view(), name='deco_detail'), url(r'^const_detail/$', views.const_detail, name='const_detail'), url(r'^elect_detail/$', views.elect_detail, name='elect_detail'), url(r'^art_detail/$', views.art_detail, name='art_detail'), url(r'^viewpay/$', views.CartDetailPayView.as_view(), name='cart_detail_pay'), url(r'^charge/$', views.charge, name='charge'), url(r'^address/$', AddressFormView.as_view(), name='address'), url(r'^address/add/$', UserAddressCreateView.as_view(), name='add_address'), url(r'^address/confirm/$', ConfirmOrderView.as_view(), name='confirm_order'), url(r'^orders/$', OrdersList.as_view(), name='order_list'), #url(r'^accounts/', include('registration.backends.default.urls')), ]
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, document_root=settings.MEDIA_ROOT)
from django.conf.urls import url from orders.views import AddressSelectFormView, UserAddressCreateView from .views import CheckoutView, CheckoutFinalView urlpatterns = [ url(r'^$', CheckoutView.as_view(), name='checkout'), url(r'^final/$', CheckoutFinalView.as_view(), name='checkout_final'), url(r'^address/$', AddressSelectFormView.as_view(), name='order_address'), url(r'^address/add/$', UserAddressCreateView.as_view(), name='order_address_create'), ]
# 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', namespace="products")), url(r'^categories/', include('products.urls_categories', namespace="categories")), url(r'^orders/$', OrderListView.as_view(), name='orders'), url(r'^orders/(?P<pk>\d+)/$', OrderDetailView.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.urls import url from Cart import views from orders.views import AddressFormView, UserAddressCreateView, ConfirmOrderView, OrdersList urlpatterns = [ url(r'^$', views.CartCreateView.as_view(), name='create_cart'), url(r'^view/$', views.CartDetailView.as_view(), name='cart_detail'), url(r'^checkout/$', views.CheckoutView.as_view(), name='cart_checkout'), url(r'^address/$', AddressFormView.as_view(), name='address'), url(r'^address/add/$', UserAddressCreateView.as_view(), name='add_address'), url(r'^address/confirm/$', ConfirmOrderView.as_view(), name='confirm_order'), url(r'^orders/$', OrdersList.as_view(), name='order_list'), ]
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 += [ url(r'^api/$', APIHomeView.as_view(), name='home_api'), url(r'^api/cart/$', CartAPIView.as_view(), name='cart_api'), url(r'^api/checkout/$', CheckoutAPIView.as_view(), name='checkout_api'), url(r'^api/auth/token/$', obtain_jwt_token), url(r'^api/auth/token/refresh/$', refresh_jwt_token), url(r'^api/user/address/$',
url(r'^products/$', ProductListView.as_view(), name = "products_list_view"), url(r'^create/product$', ProductCreateView.as_view(), name = "products_create_view"), url(r'^update/product/(?P<pk>\d+)$', ProductUpdateView.as_view(), name = "products_update_view"), url(r'^delete/product/(?P<pk>\d+)$', ProductDeleteView.as_view(), name = "products_delete_view"), url(r'^products/(?P<pk>\d+)$', ProductDetailView.as_view(), name = "products_detail_view"), url(r'^products/(?P<slug>[\w-]+)$', ProductDetailView.as_view(), name = "products_slug_view"), url(r'^cart/$', CartView.as_view(), name = "cart"), url(r'^orders/$', OrderList.as_view(), name = "orders"), url(r'^orders/(?P<pk>\d+)$', OrderDetail.as_view(), name = "order_detail"), url(r'^checkout/$', CheckoutView.as_view(), name = "checkout"), url(r'^checkout/address/$', AddressSelectFormView.as_view(), name = "address_form"), 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)