This commit is contained in:
Alexandre Provencio 2016-08-31 16:12:55 +00:00 committed by GitHub
commit f7e9112208
4 changed files with 10 additions and 5 deletions

View File

@ -238,9 +238,9 @@ else:
########## END CELERY ########## END CELERY
{% endif %} {% endif %}
{% if cookiecutter.use_compressor == 'y'-%}
# django-compressor # django-compressor
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
{% if cookiecutter.use_compressor == 'y'-%}
INSTALLED_APPS += ("compressor", ) INSTALLED_APPS += ("compressor", )
STATICFILES_FINDERS += ("compressor.finders.CompressorFinder", ) STATICFILES_FINDERS += ("compressor.finders.CompressorFinder", )
{%- endif %} {%- endif %}
@ -262,3 +262,4 @@ WEBPACK_LOADER = {
{% endif %} {% endif %}
# Your common stuff: Below this line define 3rd party library settings # Your common stuff: Below this line define 3rd party library settings
# ------------------------------------------------------------------------------

View File

@ -12,10 +12,11 @@ Local settings
- Add django-extensions as app - Add django-extensions as app
""" """
from .common import * # noqa
import socket import socket
import os import os
from .common import * # noqa
# DEBUG # DEBUG
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
DEBUG = env.bool('DJANGO_DEBUG', default=True) DEBUG = env.bool('DJANGO_DEBUG', default=True)
@ -57,7 +58,7 @@ 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
if os.environ.get('USE_DOCKER') == 'yes': if os.environ.get('USE_DOCKER') == 'yes':
ip = socket.gethostbyname(socket.gethostname()) ip = socket.gethostbyname(socket.gethostname())
INTERNAL_IPS += [ip[:-1]+"1"] INTERNAL_IPS += [ip[:-1] + "1"]
DEBUG_TOOLBAR_CONFIG = { DEBUG_TOOLBAR_CONFIG = {
'DISABLE_PANELS': [ 'DISABLE_PANELS': [
@ -80,3 +81,4 @@ CELERY_ALWAYS_EAGER = True
########## END CELERY ########## END CELERY
{% endif %} {% endif %}
# Your local stuff: Below this line define 3rd party library settings # Your local stuff: Below this line define 3rd party library settings
# ------------------------------------------------------------------------------

View File

@ -14,11 +14,11 @@ Production Configurations
""" """
from __future__ import absolute_import, unicode_literals from __future__ import absolute_import, unicode_literals
from boto.s3.connection import OrdinaryCallingFormat
from django.utils import six
{% if cookiecutter.use_sentry_for_error_reporting == 'y' %} {% if cookiecutter.use_sentry_for_error_reporting == 'y' %}
import logging import logging
{% endif %} {% endif %}
from boto.s3.connection import OrdinaryCallingFormat
from django.utils import six
from .common import * # noqa from .common import * # noqa
@ -318,3 +318,4 @@ WEBPACK_LOADER = {
{% endif %} {% endif %}
# Your production stuff: Below this line define 3rd party library settings # Your production stuff: Below this line define 3rd party library settings
# ------------------------------------------------------------------------------

View File

@ -1,6 +1,7 @@
[flake8] [flake8]
max-line-length = 120 max-line-length = 120
exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules exclude = .tox,.git,*/migrations/*,*/static/CACHE/*,docs,node_modules
ignore = F999
[pep8] [pep8]
max-line-length = 120 max-line-length = 120