mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-18 12:02:26 +03:00
Merge branch 'master' into gulpfile-js
This commit is contained in:
commit
60adede367
2
setup.py
2
setup.py
|
@ -10,7 +10,7 @@ except ImportError:
|
||||||
|
|
||||||
# Our version ALWAYS matches the version of Django we support
|
# Our version ALWAYS matches the version of Django we support
|
||||||
# If Django has a new release, we branch, tag, then update this setting after the tag.
|
# If Django has a new release, we branch, tag, then update this setting after the tag.
|
||||||
version = '1.10.1'
|
version = '1.10.7'
|
||||||
|
|
||||||
if sys.argv[-1] == 'tag':
|
if sys.argv[-1] == 'tag':
|
||||||
os.system('git tag -a %s -m "version %s"' % (version, version))
|
os.system('git tag -a %s -m "version %s"' % (version, version))
|
||||||
|
|
|
@ -12,8 +12,6 @@ Local settings
|
||||||
- Add django-extensions as app
|
- Add django-extensions as app
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import socket
|
|
||||||
import os
|
|
||||||
from .base import * # noqa
|
from .base import * # noqa
|
||||||
|
|
||||||
# DEBUG
|
# DEBUG
|
||||||
|
@ -55,6 +53,9 @@ INSTALLED_APPS += ['debug_toolbar', ]
|
||||||
|
|
||||||
INTERNAL_IPS = ['127.0.0.1', '10.0.2.2', ]
|
INTERNAL_IPS = ['127.0.0.1', '10.0.2.2', ]
|
||||||
{% if cookiecutter.use_docker == 'y' %}
|
{% 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
|
# tricks to have debug toolbar when developing with docker
|
||||||
if os.environ.get('USE_DOCKER') == 'yes':
|
if os.environ.get('USE_DOCKER') == 'yes':
|
||||||
ip = socket.gethostbyname(socket.gethostname())
|
ip = socket.gethostbyname(socket.gethostname())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user