from django.conf.urls.defaults import patterns

from checkout.views import CheckoutView, ConfirmView

urlpatterns = patterns(
    "checkout.views",
    (r"^$", CheckoutView.as_view(), {}, "checkout"),
    (r"^confirm/$", ConfirmView.as_view(), {}, "checkout_confirm"),
    (r"^discount/$", "lookup_discount_code", {}, "checkout_lookup_discount"),
)
Exemple #2
0
from django.views.generic import RedirectView

from rest_framework.routers import DefaultRouter

from checkout.views import CheckoutView
from contact.views import ContactView
from profiles.views import ProfileView

ROUTER = DefaultRouter()

urlpatterns = [
    path('api/', include(ROUTER.urls)),
    path('', RedirectView.as_view(pattern_name='goods:list'), name='home'),
    path('admin/', admin.site.urls),
    path('goods/', include('goods.urls', namespace='goods')),
    path('categories/', include('categories.urls', namespace='categories')),
    path('profile/', ProfileView.as_view(), name='profile'),
    path('checkout/', CheckoutView.as_view(), name='checkout'),
    path('contact/', ContactView.as_view(), name='contact'),
    path('accounts/', include('allauth.urls')),
    path('taggit/', include('taggit_selectize.urls')),
    path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),
]

if settings.DEBUG:
    urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)

# TODO: Implement 2FA & update corresponding Cover letter
# TODO: Implement TBA using django-allauth & update corresponding Cover letter
from django.conf.urls.defaults import patterns

from checkout.views import CheckoutView, ConfirmView


urlpatterns = patterns("checkout.views",
    (r"^$", CheckoutView.as_view(), {}, "checkout"),
    (r"^confirm/$", ConfirmView.as_view(), {}, "checkout_confirm"),
    (r"^discount/$", "lookup_discount_code", {}, "checkout_lookup_discount"),
)
Exemple #4
0
from django.conf.urls import patterns, url
from checkout.views import CheckoutView, PayView

urlpatterns = patterns(
    '',
    url(r'^$', CheckoutView.as_view(), name='checkout'),
    url(r'^pay/(?P<order_id>\d+)$', PayView.as_view(), name='checkout'),
)
Exemple #5
0
from django.conf.urls import url
from . import views
from checkout.views import CheckoutView

urlpatterns = [
    url(r'^$', CheckoutView.as_view(), name='checkout'),
]