Changes between Version 22 and Version 23 of NewAdminChanges


Ignore:
Timestamp:
11/20/05 10:23:00 (9 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NewAdminChanges

    v22 v23  
    201201
    202202Improved error reporting when debug is on. See #603. Also note that loaders must return a tuple of (source, filename) rather than just the source of a loaded template.
    203 
    204 To make this work, add "django.middleware.template_debug.TemplateDebugMiddleware" to MIDDLEWARE_CLASSES,
    205 and make a template called template_debug.html which just does:
    206 {% include "admin/template_debug" %} (If anyone has a better suggestion of how to deal with this, let me know.)
    207 Then add TEMPLATE_DEBUG = True to your settings file.
    208 
    209 
     203To make this work, add TEMPLATE_DEBUG = True to your settings file, and also make sure DEBUG=True. Eg
     204{{{
     205DEBUG = True
     206TEMPLATE_DEBUG = DEBUG
     207}}}
    210208=== Template Tag decorators ===
    211209defining tags in the 'standard' branch requires you to parse the string the user enters, and can be quite daunting for a newbie.
Back to Top