Skip to content

Commit

Permalink
Make DEBUG configurable on staging
Browse files Browse the repository at this point in the history
  • Loading branch information
coagulant committed Feb 18, 2015
1 parent 7ed6aa9 commit 43ad2ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moscowdjango/settings_staging.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Django settings for moscowdjango project.
from .settings import *

DEBUG = True
DEBUG = os.environ.get('DEBUG', False)

EMBEDLY_KEY = os.environ.get('EMBEDLY_KEY')
SECRET_KEY = os.environ.get('SECRET_KEY')
Expand All @@ -16,10 +16,10 @@

# Media & static
DEFAULT_FILE_STORAGE = 'moscowdjango.amazon.DefaultStorage'
STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'
DEFAULT_S3_PATH = "media"
MEDIA_ROOT = '/%s/' % DEFAULT_S3_PATH
MEDIA_URL = 'https://%s.s3.amazonaws.com/media/' % AWS_STORAGE_BUCKET_NAME
STATICFILES_STORAGE = 'whitenoise.django.GzipManifestStaticFilesStorage'

# Django compressor
COMPRESS_ENABLED = False

0 comments on commit 43ad2ec

Please sign in to comment.