From ccffb199464e9b982f2972a29d5ecb35cf53f586 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Thu, 21 Jul 2005 14:01:17 +0000 Subject: [PATCH] Fixed #132 -- thanks anonymous user git-svn-id: http://code.djangoproject.com/svn/django/trunk@270 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/extensions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/extensions.py b/django/core/extensions.py index addb3eb8bc..f51047b0ec 100644 --- a/django/core/extensions.py +++ b/django/core/extensions.py @@ -13,7 +13,7 @@ class DjangoContext(Context): self['user'] = request.user self['messages'] = request.user.get_and_delete_messages() 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 from django.core import db self['sql_queries'] = db.db.queries