[Django]-Django Caught NoReverseMatch – TemplateSyntaxError

4👍

The problem was my second urlpattern was overriding the first pattern.

Instead of:

urlpatterns = patterns('',

it needed to be:

urlpatterns += patterns('',
👤Emile

0👍

The url regex is expecting an ending slash. Does the offending url end with a slash?

If you do have a PREPEND_SLASHES settings differing from your last projects, that might explain the error you’re seeing!

0👍

Your url is ok. You need to check two things:

  1. Is the urls.py included from the main urls.py?
  2. Is the application added to INSTALLED_APPLICATIONS in settings.py?

Leave a comment