Tag Archive: django

Aug
29

Bad Error Message is Unhelpful

So, I’m still learning Django and have a long ways to go, but the following error is extremely unhelpful: “TemplateSyntaxError: Invalid block tag: ‘else’, expected ‘else’ or ‘endif’” The problem is, Django doesn’t do else if, but my editor does highlight it as if it’s correct. You then get this error message, but have to …

Continue reading »