Answer the question
In order to leave comments, you need to log in
How to output url correctly?
There is a url
url(r'^(?P<slug>[-\w]+)/(?P<id>[-\w]+)/create-feedback/$', feedback_create_id, name='create_feedback_id'),
{% url 'create_feedback_id' order.slug start.id %}
django.core.urlresolvers.NoReverseMatch: Reverse for 'create_feedback_id' with arguments '('', '')' and keyword arguments '{}' not found. 1 pattern(s) tried: ['(?P<slug>[-\\w]+)/(?P<id>[-\\w]+)/create-feedback/$']
Answer the question
In order to leave comments, you need to log in
It looks like your variables order.slug
are start.id
either empty or undefined. They don't fit, because in the url you have a [-\w]+
plus sign that says at least one character must be present (which is logical). And the syntax seems to be correct.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question