我得到下面的錯誤urls.py:Django是不包括已安裝的應用程序
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 %}
?
哇,我不知道我怎麼錯過了。謝謝。 – GhotiPhud