mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-29 17:29:45 +03:00
Update local.py
Move import to top
This commit is contained in:
parent
7665254600
commit
89243650a6
|
@ -9,6 +9,8 @@ Local settings
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from .common import * # noqa
|
from .common import * # noqa
|
||||||
|
import socket
|
||||||
|
|
||||||
|
|
||||||
# DEBUG
|
# DEBUG
|
||||||
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
||||||
|
@ -49,7 +51,6 @@ 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
|
||||||
import socket
|
|
||||||
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