Skip to content

Commit

Permalink
Merge pull request #1131 from webyneter/fix-travis-importedbutunused-…
Browse files Browse the repository at this point in the history
…errors

Workaround flake8 "imported but unused" errors
  • Loading branch information
webyneter authored Apr 21, 2017
2 parents 1ca507a + c4e6462 commit 92ffe53
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions {{cookiecutter.project_slug}}/config/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
- Add django-extensions as app
"""

import socket
import os
from .base import * # noqa

# DEBUG
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 92ffe53

Please sign in to comment.