For marketers
who love technology
Home » , » NoReverseMatch error in python django... The solution

NoReverseMatch error in python django... The solution

More accurate representation of relationship b...
More accurate representation of relationship between URIs, URNs, and URLs. Revised version of File:URI Venn Diagram.svg, per Talk:Uniform Resource Identifier#Misleading Venn Diagram in a different way. (Photo credit: Wikipedia)
NoReverseMatch error is nasty with python Django. It happens often when you add a new page. In this post I will explain you how to solve this bug easily.

Typically the famous NoReverseMatch error occurs when you put quotes or not around your url name in a url tag of a template. For instance:

If you used:
{% url 'index' %}
Try:
{% url index %}
And conversely...

The source of this problem is the different syntax depending on whether you include url from future in your template or not.


SHARE

About Gilles

1 comments :

  1. You're the best mate ! Saved my day !!
    Cheers,
    Marc

    ReplyDelete