def debug(request):
    context_extras = {}
    if settings.DEBUG and request.META.get('REMOTE_ADDR') in settings.INTERNAL_IPS:
        context_extras['debug'] = True
        from django.db import connection
        context_extras['sql_queries'] = connection.queries
    return context_extras
If a submodule of a package is imported twice, an unused import warning
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/core/context_processors.py/debug--crossover with--dataset/ETHPy150Open kevinw/pyflakes/pyflakes/test/test_imports.py/Test.test_duplicateSubmoduleImport