On Mon, Aug 31, 2009 at 9:03 AM, gentlestone <tibor.b...@hotmail.com> wrote:
> > is recursion allowed in templates? > > for example can the "xy_template.html" file contain {% include > "xy_template.html" %}? > It's "allowed" in the sense that it's not caught as an error. But it will lead to infinite recursion... > > because I tried but the system crushed: > ...which is what you are seeing here. For some reason it often seems that instead of reporting maximum recursion depth exceeded, Python on Macs crash. So no, it's not something you actually want to do. What is the real problem you are trying to solve by including a template inside itself? Karen > > Process: Python [97385] > Path: /System/Library/Frameworks/Python.framework/Versions/ > 2.5/Resources/Python.app/Contents/MacOS/Python > Identifier: Python > Version: ??? (???) > Code Type: X86 (Native) > Parent Process: Python [97384] > > Interval Since Last Report: 3912 sec > Crashes Since Last Report: 12 > Per-App Interval Since Last Report: 0 sec > Per-App Crashes Since Last Report: 12 > > Date/Time: 2009-08-31 15:02:00.210 +0200 > OS Version: Mac OS X 10.5.7 (9J61) > Report Version: 6 > Anonymous UUID: BD3D5563-F1EA-4DC8-9293-5BCBADDFA1DE > > Exception Type: EXC_BAD_ACCESS (SIGBUS) > Exception Codes: KERN_PROTECTION_FAILURE at 0x00000000b0000fec > Crashed Thread: 1 > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. 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 -~----------~----~----~----~------~----~------~--~---