Re: Strange Template Error in Production Mode

2012-10-07 Thread Kamhamea

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

-- 
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/-/auIZZuRwj48J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Strange Template Error in Production Mode

2012-10-07 Thread Kamhamea
Not an answer just an update:

> {% comment %}
>  Imagelist
> {% uncomment %}
> is not correct.
>

Correctly commented out the lines look like 
{% comment %}
 Imagelist
{% 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 
 Imagelist
will always cause an error, even if I change names.

 

-- 
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/-/0LddmWpw3qwJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Strange Template Error in Production Mode

2012-10-07 Thread Kamhamea
When 
DEBUG = False
my django 1.4 (recently updated) behaves weirdly.

I have a template to include that displays some menu items


 Topic 1
 Topic 
2
 Search

   {% if local %}
 
Topic local 1
 Imagelist
 Topic local 2
   {% endif %}


I get an error with that template only in debug mode turned off and when 
local is true.
The problem melts down to the line.
 Imagelist
If this line is removed. The template works fine even in degug mode turned 
off.

However it comes stranger still. When I comment out the line.
{% comment %}
 Imagelist
{% uncomment %}
it works again as expected. But it also works when I add the line
 Imagelist
again, and it doesn't matter whether before or after the comment.

I already thought I have entered a strange invisible character in that 
line, but I retyped the whole file and observed exactly the same behavior.
I thought it might have something to do with the name, so I changed 
"img_list_images" to other names. The same behavior

The url file holds:
(r'^list/$', 'list_images',{}, 'img_list_images'),



-- 
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/-/VIDJ-_92t4QJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.