We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97f1665 commit c8d4e36Copy full SHA for c8d4e36
biojs/settings.py
@@ -22,17 +22,17 @@
22
# SECURITY WARNING: keep the secret key used in production secret!
23
SECRET_KEY = '$&&+$xz)50khd6q+aq&95r1$2urmmdv37=-*lu3v-wwh46829t'
24
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
+try:
+ from config import GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET
+except:
+ GITHUB_CLIENT_ID = ''
29
+ GITHUB_CLIENT_SECRET = ''
30
31
# SECURITY WARNING: don't run with debug turned on in production!
32
try:
- from config import *
33
- DEBUG = DEBUG
+ from config import DEBUG
34
except:
35
- DEBUG = True
+ DEBUG = False
36
37
ALLOWED_HOSTS = ['*']
38
0 commit comments