Skip to content

Commit c8d4e36

Browse files
author
Dennis Schwartz
committed
Import github creds from ansible config
1 parent 97f1665 commit c8d4e36

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

biojs/settings.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@
2222
# SECURITY WARNING: keep the secret key used in production secret!
2323
SECRET_KEY = '$&&+$xz)50khd6q+aq&95r1$2urmmdv37=-*lu3v-wwh46829t'
2424

25-
GITHUB_CLIENT_ID = os.environ.get('GITHUB_CLIENT_ID') or ''
26-
GITHUB_CLIENT_SECRET = os.environ.get('GITHUB_CLIENT_SECRET') or ''
27-
28-
DEBUG=False
25+
try:
26+
from config import GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET
27+
except:
28+
GITHUB_CLIENT_ID = ''
29+
GITHUB_CLIENT_SECRET = ''
2930

3031
# SECURITY WARNING: don't run with debug turned on in production!
3132
try:
32-
from config import *
33-
DEBUG = DEBUG
33+
from config import DEBUG
3434
except:
35-
DEBUG = True
35+
DEBUG = False
3636

3737
ALLOWED_HOSTS = ['*']
3838

0 commit comments

Comments
 (0)