#-*- coding: utf-8 -*-
Loop over payment backends defined in settings.SHOP_PAYMENT_BACKENDS and add their URLs to the payment namespace. eg: http://www.example.com/shop/pay/paypal http://www.example.com/shop/pay/pay-on-delivery ... """
# For every backend defined in the backend pool, load all the URLs it defines # in its get_urls() method. regexp = '^%s/' % backend.url_namespace urls = backend.get_urls() pattern = patterns('', (regexp, include(backend.get_urls())) )
urlpatterns = pattern + urlpatterns |