Update local.py

Bug fix and remove blank line
This commit is contained in:
Julien Almarcha 2016-06-07 17:50:36 +02:00
parent 89243650a6
commit 517f97207f

View File

@ -11,7 +11,6 @@ Local settings
from .common import * # noqa from .common import * # noqa
import socket import socket
# DEBUG # DEBUG
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
DEBUG = env.bool('DJANGO_DEBUG', default=True) DEBUG = env.bool('DJANGO_DEBUG', default=True)
@ -49,7 +48,7 @@ CACHES = {
MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',) MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
INSTALLED_APPS += ('debug_toolbar', ) INSTALLED_APPS += ('debug_toolbar', )
INTERNAL_IPS = ('127.0.0.1', '10.0.2.2',) INTERNAL_IPS = ['127.0.0.1', '10.0.2.2',]
# tricks to have debug toolbar when developing with docker # tricks to have debug toolbar when developing with docker
ip = socket.gethostbyname(socket.gethostname()) ip = socket.gethostbyname(socket.gethostname())
INTERNAL_IPS += [ip, ip[:-1]+"1"] INTERNAL_IPS += [ip, ip[:-1]+"1"]