mirror of
https://github.com/django/django.git
synced 2024-11-29 22:56:46 +01:00
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:
parent
907ae72e81
commit
ccffb19946
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user