Fix comments and silence PEP8 lambda warnings in config module. (#1357)

This commit is contained in:
Chris Franklin 2017-10-12 17:36:44 +00:00 committed by Shupeyko Nikita
parent 6f51b05b6e
commit d0e5c4b3b6
4 changed files with 9 additions and 9 deletions

View File

@ -1,5 +1,5 @@
""" """
Django settings for {{cookiecutter.project_name}} project. Base settings for {{cookiecutter.project_name}} project.
For more information on this file, see For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/ https://docs.djangoproject.com/en/dev/topics/settings/

View File

@ -1,9 +1,9 @@
""" """
Local settings Local settings for {{cookiecutter.project_name}} project.
- Run in Debug mode - Run in Debug mode
{% if cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'y' %} {% if cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'y' %}
- Use mailhog for emails - Use mailhog for emails via Docker
{% elif cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'n' %} {% elif cookiecutter.use_mailhog == 'y' and cookiecutter.use_docker == 'n' %}
- Use mailhog for emails - Use mailhog for emails
{% else %} {% else %}

View File

@ -1,5 +1,5 @@
""" """
Production Configurations Production settings for {{cookiecutter.project_name}} project.
{% if cookiecutter.use_whitenoise == 'y' -%} {% if cookiecutter.use_whitenoise == 'y' -%}
- Use WhiteNoise for serving static files{% endif %} - Use WhiteNoise for serving static files{% endif %}
@ -119,8 +119,8 @@ DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
{% else %} {% else %}
# See:http://stackoverflow.com/questions/10390244/ # See:http://stackoverflow.com/questions/10390244/
from storages.backends.s3boto3 import S3Boto3Storage from storages.backends.s3boto3 import S3Boto3Storage
StaticRootS3BotoStorage = lambda: S3Boto3Storage(location='static') StaticRootS3BotoStorage = lambda: S3Boto3Storage(location='static') # noqa
MediaRootS3BotoStorage = lambda: S3Boto3Storage(location='media') MediaRootS3BotoStorage = lambda: S3Boto3Storage(location='media') # noqa
DEFAULT_FILE_STORAGE = 'config.settings.production.MediaRootS3BotoStorage' DEFAULT_FILE_STORAGE = 'config.settings.production.MediaRootS3BotoStorage'
MEDIA_URL = 'https://s3.amazonaws.com/%s/media/' % AWS_STORAGE_BUCKET_NAME MEDIA_URL = 'https://s3.amazonaws.com/%s/media/' % AWS_STORAGE_BUCKET_NAME

View File

@ -1,8 +1,8 @@
''' """
Test settings Test settings for {{cookiecutter.project_name}} project.
- Used to run tests fast on the continuous integration server and locally - Used to run tests fast on the continuous integration server and locally
''' """
from .base import * # noqa from .base import * # noqa