Changes between Version 22 and Version 23 of NewAdminChanges
- Timestamp:
- Nov 20, 2005, 10:23:00 AM (19 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NewAdminChanges
v22 v23 201 201 202 202 Improved 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 203 To make this work, add TEMPLATE_DEBUG = True to your settings file, and also make sure DEBUG=True. Eg 204 {{{ 205 DEBUG = True 206 TEMPLATE_DEBUG = DEBUG 207 }}} 210 208 === Template Tag decorators === 211 209 defining tags in the 'standard' branch requires you to parse the string the user enters, and can be quite daunting for a newbie.