Skip to content

Commit

Permalink
added secret.py in gitignore and hid secret_key
Browse files Browse the repository at this point in the history
  • Loading branch information
Augustinetharakan12 committed Oct 18, 2018
1 parent 2eba52a commit 71be63a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,6 @@ db.sqlite3

# Static files
excelplay_kryptos/static
excelplay_kryptos/media
excelplay_kryptos/media

secret.py
5 changes: 4 additions & 1 deletion excelplay_kryptos/excelplay_kryptos/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

from secret import SECRET

# False if not in os.environ
#DEBUG = env('DEBUG')
DEBUG = False

# Raises django's ImproperlyConfigured exception if SECRET_KEY not in os.environ
#SECRET_KEY = env('SECRET_KEY')
SECRET_KEY = os.environ.get('secret_key')

SECRET_KEY = SECRET

ALLOWED_HOSTS = ['35.200.222.240', 'play-demo.excelmec.org','play.excelmec.org']


Expand Down

0 comments on commit 71be63a

Please sign in to comment.