Skip to content

Commit

Permalink
Merge pull request #331 from bogdal/debug-mode
Browse files Browse the repository at this point in the history
Debug mode by default
  • Loading branch information
patrys committed Aug 10, 2015
2 parents 6854e10 + b7b2a75 commit a584198
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"BUILDPACK_URL": "https://github.com/ddollar/heroku-buildpack-multi.git",
"DJANGO_SETTINGS_MODULE": "saleor.settings",
"ALLOWED_HOSTS": "*",
"DEBUG": "False",
"SECRET_KEY": {
"description": "A secret key for verifying the integrity of signed cookies.",
"generator": "secret"
Expand Down
5 changes: 3 additions & 2 deletions saleor/settings.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import ast
import os.path

import dj_database_url
from django.contrib.messages import constants as messages


DEBUG = bool(os.environ.get('DEBUG', False))
DEBUG = ast.literal_eval(os.environ.get('DEBUG', 'True'))
TEMPLATE_DEBUG = DEBUG

SITE_ID = 1
Expand Down Expand Up @@ -38,7 +39,7 @@
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD')
EMAIL_HOST_USER = os.environ.get('EMAIL_HOST_USER')
EMAIL_PORT = os.environ.get('EMAIL_PORT')
EMAIL_USE_TLS = bool(os.environ.get('EMAIL_USE_TLS', False))
EMAIL_USE_TLS = ast.literal_eval(os.environ.get('EMAIL_USE_TLS', 'False'))
DEFAULT_FROM_EMAIL = os.environ.get('DEFAULT_FROM_EMAIL')


Expand Down

0 comments on commit a584198

Please sign in to comment.