Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #132 -- thanks anonymous user

git-svn-id: http://code.djangoproject.com/svn/django/trunk@270 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ccffb199464e9b982f2972a29d5ecb35cf53f586 1 parent 907ae72
Jacob Kaplan-Moss authored July 21, 2005

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/core/extensions.py
2  django/core/extensions.py
@@ -13,7 +13,7 @@ def __init__(self, request, dict={}):
13 13
         self['user'] = request.user
14 14
         self['messages'] = request.user.get_and_delete_messages()
15 15
         self['perms'] = PermWrapper(request.user)
16  
-        if DEBUG and request.META['REMOTE_ADDR'] in INTERNAL_IPS:
  16
+        if DEBUG and request.META.get('REMOTE_ADDR') in INTERNAL_IPS:
17 17
             self['debug'] = True
18 18
             from django.core import db
19 19
             self['sql_queries'] = db.db.queries

0 notes on commit ccffb19

Please sign in to comment.
Something went wrong with that request. Please try again.