diff --git a/{{cookiecutter.project_slug}}/config/settings/local.py b/{{cookiecutter.project_slug}}/config/settings/local.py index 3b51ae3285..fc00cd009a 100644 --- a/{{cookiecutter.project_slug}}/config/settings/local.py +++ b/{{cookiecutter.project_slug}}/config/settings/local.py @@ -12,8 +12,6 @@ - Add django-extensions as app """ -import socket -import os from .base import * # noqa # DEBUG @@ -55,6 +53,9 @@ INTERNAL_IPS = ['127.0.0.1', '10.0.2.2', ] {% if cookiecutter.use_docker == 'y' %} +{# [cookiecutter-django] This is a workaround to flake8 "imported but unused" errors #} +import socket +import os # tricks to have debug toolbar when developing with docker if os.environ.get('USE_DOCKER') == 'yes': ip = socket.gethostbyname(socket.gethostname())