“Django-Tool-Bar” Réponses codées

Django-Tool-Bar

MIDDLEWARE = [
    # ...
    'debug_toolbar.middleware.DebugToolbarMiddleware',
    # ...
]
MasterTeam

Django-Tool-Bar

INTERNAL_IPS = [
    # ...
    '127.0.0.1',
    # ...
]
MasterTeam

Django-Tool-Bar

INSTALLED_APPS = [
    # ...
    'django.contrib.staticfiles',
    # ...
    'debug_toolbar',
]

STATIC_URL = '/static/'
MasterTeam

Django-Tool-Bar

$ python -m pip install -e git+https://github.com/jazzband/django-debug-toolbar.git#egg=django-debug-toolbar
MasterTeam

Django-Tool-Bar

import debug_toolbar
from django.conf import settings
from django.urls import include, path

urlpatterns = [
    ...
    path('__debug__/', include(debug_toolbar.urls)),
]
MasterTeam

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code