forked from NextAcademy/curriculum-nextagram-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
46 lines (33 loc) · 994 Bytes
/
config.py
File metadata and controls
46 lines (33 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import os
class Config(object):
DEBUG = False
TESTING = False
CSRF_ENABLED = True
SECRET_KEY = os.environ.get(
'SECRET_KEY') or os.urandom(32)
S3_BUCKET = os.environ.get("S3_BUCKET")
S3_KEY = os.environ.get("S3_KEY")
S3_SECRET = os.environ.get("S3_SECRET_ACCESS_KEY")
S3_LOCATION = 'http://{}.s3.amazonaws.com/'.format(S3_BUCKET)
SECRET_KEY = os.environ.get('SECRET_KEY') or os.urandom(32)
DEBUG = True
PORT = 5000
class ProductionConfig(Config):
DEBUG = False
ASSETS_DEBUG = False
GOOGLE_CLIENT_ID = os.getenv('GC_ID')
GOOGLE_CLIENT_SECRET = os.getenv('GC_SECRET')
class StagingConfig(Config):
DEVELOPMENT = False
DEBUG = False
ASSETS_DEBUG = False
class DevelopmentConfig(Config):
DEVELOPMENT = True
DEBUG = True
ASSETS_DEBUG = False
GOOGLE_CLIENT_ID = os.getenv('GC_ID')
GOOGLE_CLIENT_SECRET = os.getenv('GC_SECRET')
class TestingConfig(Config):
TESTING = True
DEBUG = True
ASSETS_DEBUG = True