mirror of https://github.com/django/django.git
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['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
|
||||||
|
|
Loading…
Reference in New Issue