Fixed #132 -- thanks anonymous user

git-svn-id: http://code.djangoproject.com/svn/django/trunk@270 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2005-07-21 14:01:17 +00:00
parent 907ae72e81
commit ccffb19946
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class DjangoContext(Context):
self['user'] = request.user self['user'] = request.user
self['messages'] = request.user.get_and_delete_messages() self['messages'] = request.user.get_and_delete_messages()
self['perms'] = PermWrapper(request.user) self['perms'] = PermWrapper(request.user)
if DEBUG and request.META['REMOTE_ADDR'] in INTERNAL_IPS: if DEBUG and request.META.get('REMOTE_ADDR') in INTERNAL_IPS:
self['debug'] = True self['debug'] = True
from django.core import db from django.core import db
self['sql_queries'] = db.db.queries self['sql_queries'] = db.db.queries