【发布时间】:2011-09-27 08:38:22
【问题描述】:
我收到以下错误:
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 %}?
【问题讨论】:
标签: django django-urls django-apps