[Answered ]-TemplateSyntaxError at /admin/ Caught SyntaxError while rendering: invalid syntax


An error in your URL file can give that error message, due to the way things are imported.

In the example you posted, you’re missing a closing brace at the end. If that’s just from copying and pasting, try commenting each line out, then re-introducing them in turn to find which one is causing the problem.


Just had this problem. Discovered it was an error in my views file.


Leave a comment