from django.urls import path import oscar.apps.partner.apps as apps from oscar.core.loading import get_class class PartnerConfig(apps.PartnerConfig): name = 'market_verde.partner' def ready(self): super().ready() self.create_partner_view = get_class("partner.views", "PartnerCreateView") def get_urls(self): urls = [ path("partners/add", self.create_partner_view.as_view(), name="partner_add"), ] default_urls = super().get_urls() return self.post_process_urls(urls) + default_urls
"market_verde.partner.apps.PartnerConfig",
"oscar.apps.partner.apps.PartnerConfig",