Skip to content

Commit

Permalink
Some production settings changes
Browse files Browse the repository at this point in the history
  • Loading branch information
John McDowell committed Jun 21, 2020
1 parent 0461191 commit 10bc479
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions adjudicator/decisions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from .path import Path
from .prevent_strength import PreventStrength


__all__ = [
'Outcomes',

Expand Down
13 changes: 12 additions & 1 deletion project/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@
# See https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'g&$7(^po3l^!yxj4c+-^ly!9#ydc95j8o8(=%j1@cn*po)0@ig'
SECRET_KEY = os.environ.get(
'DJANGO_SECRET_KEY',
'g&$7(^po3l^!yxj4c+-^ly!9#ydc95j8o8(=%j1@cn*po)0@ig'
)

# Set this to True to avoid transmitting the CSRF cookie over HTTP
# accidentally.
CSRF_COOKIE_SECURE = True

# Set this to True to avoid transmitting the session cookie over HTTP
# accidentally.
SESSION_COOKIE_SECURE = True

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
Expand Down

0 comments on commit 10bc479

Please sign in to comment.