“django-toall-bar” Código de respuesta

django-toall-bar

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

django-toall-bar

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

django-toall-bar

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

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

django-toall-bar

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

django-toall-bar

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

STATIC_URL = '/static/'
MasterTeam

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código