Я получаю ошибку ниже:
Caught NoReverseMatch while rendering: Reverse for 'satchless-checkout-prepare-order' with arguments '()' and keyword arguments '{}' not found.
Но у меня есть satchless.contrib.checkout.common
в моих установленных приложениях. В пределах satchless.contrib.checkout.common
находится urls.py
, который содержит:
from django.conf.urls.defaults import patterns, url
from .views import confirmation, prepare_order, reactivate_order
urlpatterns = patterns('',
url(r'^prepare/$', prepare_order, {'typ': 'satchless_cart'},
name='satchless-checkout-prepare-order'),
url(r'^(?P<order_token>\w+)/confirmation/$', confirmation,
name='satchless-checkout-confirmation'),
url(r'^(?P<order_token>\w+)/reactivate/$', reactivate_order,
name='satchless-checkout-reactivate-order'),
)
Почему я не могу позвонить {% url satchless-checkout-prepare-order %}
из моего шаблона?