Debug toolbar on vagrant
This commit is contained in:
parent
1adb9d440e
commit
783a76dc1c
1 changed files with 7 additions and 0 deletions
|
@ -5,6 +5,8 @@ avec des différences les plus minimes possibles.
|
|||
"""
|
||||
|
||||
from .prod import * # noqa
|
||||
from .prod import TESTING, INSTALLED_APPS, MIDDLEWARE
|
||||
from .local import show_toolbar
|
||||
|
||||
DEBUG = True
|
||||
|
||||
|
@ -15,3 +17,8 @@ EMAIL_BACKEND = "django.core.mail.backends.filebased.EmailBackend"
|
|||
EMAIL_FILE_PATH = "/var/mail/django"
|
||||
|
||||
ALLOWED_HOSTS = ["127.0.0.1", "localhost", "0.0.0.0"]
|
||||
|
||||
if not TESTING:
|
||||
INSTALLED_APPS += ["debug_toolbar"]
|
||||
MIDDLEWARE = ["debug_toolbar.middleware.DebugToolbarMiddleware"] + MIDDLEWARE
|
||||
DEBUG_TOOLBAR_CONFIG = {"SHOW_TOOLBAR_CALLBACK": show_toolbar}
|
||||
|
|
Loading…
Add table
Reference in a new issue