Would this help?
http://stackoverflow.com/questions/3086637/how-should-i-validate-html-in-django-templates-during-the-development-process
I quite like the not-accepted-as-answer. Just go through your urls.
Essentially, you have two types of possible template errors:
1. human errors (missing a close tag / mispell)
2. logic error
For logic error, you are dealing with mostly logic tags such as url tags
or custom tags rendering problem. For example, does your {% url my_view id
username %} actually works? are the variables passing to / from view are
good for these tags? THis kind of error is not possible checked with going
through all urls because u can't test possibility like that. THat has to be
handled by unit test and integration (system) test.
Good luck.
On Sunday, April 15, 2012 12:42:14 PM UTC-4, Marcin wrote:
>
> Hi all,
>
> I've got a template that isn't parsing, but the error is the
> nondescript: TemplateSyntaxError: Could not parse the remainder: '"{%' from
> '"{%'
>
> Is there a tool that can help locate the source of the error?
>
> Marcin
>
> --
> Marcin Tustin
> Tel: 07773 787 105
>
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/Ml-zdg0y4WEJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.