Changeset 1386
- Timestamp:
- 11/23/05 18:35:49 (3 years ago)
- Files:
-
- django/branches/new-admin/django/views/debug.py (modified) (1 diff)
- django/branches/new-admin/docs/settings.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/new-admin/django/views/debug.py
r1382 r1386 11 11 12 12 def linebreak_iter(template_source): 13 newline_re = re.compile("^", re.M) 14 for match in newline_re.finditer(template_source): 15 yield match.start() 13 p = template_source.find('\n') 14 while p >= 0: 15 yield p 16 p = template_source.find('\n', p+1) 16 17 yield len(template_source) + 1 17 18 django/branches/new-admin/docs/settings.txt
r1321 r1386 550 550 database can manage content for multiple sites. 551 551 552 TEMPLATE_DEBUG 553 -------------- 554 555 Default: ``False`` 556 557 **Only available in Django development version.** 558 559 A boolean that turns on/off template debug mode. If this is ``True``, the fancy 560 error page will display a detailed report for any ``TemplateSyntaxError``. This 561 report contains the relevant snippet of the template, with the appropriate line 562 highlighted. 563 564 Note that Django only displays fancy error pages if ``DEBUG`` is ``True``, so you'll 565 want to set that to take advantage of this setting. 566 567 See also DEBUG. 568 552 569 TEMPLATE_DIRS 553 570 -------------
