mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-29 01:09:50 +03:00
change local config to automatically update INTERNAL_IPS when developping with docker
This commit is contained in:
parent
b8f58a08aa
commit
7665254600
|
@ -48,6 +48,10 @@ MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
|
|||
INSTALLED_APPS += ('debug_toolbar', )
|
||||
|
||||
INTERNAL_IPS = ('127.0.0.1', '10.0.2.2',)
|
||||
# tricks to have debug toolbar when developing with docker
|
||||
import socket
|
||||
ip = socket.gethostbyname(socket.gethostname())
|
||||
INTERNAL_IPS += [ip, ip[:-1]+"1"]
|
||||
|
||||
DEBUG_TOOLBAR_CONFIG = {
|
||||
'DISABLE_PANELS': [
|
||||
|
|
Loading…
Reference in New Issue
Block a user