Source code for shuup.testing.single_page_checkout_with_login_and_register_conf

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 django.urls import path

from shuup.front.views.checkout import SinglePageCheckoutView


[docs] class SinglePageCheckoutViewWithLoginAndRegister(SinglePageCheckoutView): initial_phase = "checkout_method" phase_specs = [ "shuup.front.checkout.checkout_method:CheckoutMethodPhase", "shuup.front.checkout.checkout_method:RegisterPhase", "shuup.front.checkout.addresses:AddressesPhase", "shuup.front.checkout.methods:MethodsPhase", "shuup.front.checkout.methods:ShippingMethodPhase", "shuup.front.checkout.methods:PaymentMethodPhase", "shuup.front.checkout.confirm:ConfirmPhase", ] empty_phase_spec = "shuup.front.checkout.empty:EmptyPhase"
urlpatterns = [ url( r"^checkout/$", SinglePageCheckoutViewWithLoginAndRegister.as_view(), name="checkout", ), url( r"^checkout/(?P<phase>.+)/$", SinglePageCheckoutViewWithLoginAndRegister.as_view(), name="checkout", ), path("admin/", admin.site.urls), url(r"^sa/", include("shuup.admin.urls", namespace="shuup_admin")), url(r"^", include("shuup.front.urls", namespace="shuup")), ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)