Re: Strange Template Error in Production Mode

23 views
Skip to first unread message

Kamhamea

unread,
Oct 7, 2012, 1:51:06 PM10/7/12
to django...@googlegroups.com
Not an answer just an update:
        {% comment %}
        <p><a href="{% url img_list_images %}"> Imagelist</a></p>
        {% uncomment %}
is not correct.

Correctly commented out the lines look like
{% comment %}
        <p><a href="{% url img_list_images %}"> Imagelist</a></p>
{% endcomment %}

The wrong comment out brace caused the inlude file to be ignored at all, so no error was generated. If the comment brace is set correctly the line
<p><a href="{% url img_list_images %}"> Imagelist</a></p>
will always cause an error, even if I change names.

 

Kamhamea

unread,
Oct 7, 2012, 2:29:45 PM10/7/12
to django...@googlegroups.com

Problem solved. My fault.
For some reasons I cannot recall, I had included the url.py file in debug mode only.

Reply all
Reply to author
Forward
0 new messages