mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-30 17:59:48 +03:00
Update local.py
Bug fix and remove blank line
This commit is contained in:
parent
89243650a6
commit
517f97207f
|
@ -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"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user