<filename>indjections/packages/django-debug-toolbar.py
settings = """
if DEBUG:
    INSTALLED_APPS += ['debug_toolbar']
    MIDDLEWARE = ['debug_toolbar.middleware.DebugToolbarMiddleware'] + MIDDLEWARE
    try:
        INTERNAL_IPS += ['127.0.0.1']
    except NameError:
        INTERNAL_IPS = ['127.0.0.1']
"""

urls = """
from django.conf import settings
from django.urls import include, path

if settings.DEBUG:
    import debug_toolbar
    urlpatterns = [
        path('__debug__/', include(debug_toolbar.urls)),
    ] + urlpatterns
"""
