Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@jacobian jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/extensions.py
View
2  django/core/extensions.py
@@ -13,7 +13,7 @@ def __init__(self, request, dict={}):
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
Please sign in to comment.
Something went wrong with that request. Please try again.