-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.py
More file actions
38 lines (28 loc) · 845 Bytes
/
config.py
File metadata and controls
38 lines (28 loc) · 845 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
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_NAME")
S3_KEY = os.environ.get("S3_ACCESS_KEY")
S3_SECRET = os.environ.get("S3_SECRET_ACCESS_KEY")
S3_LOCATION = 'http://{}.s3.amazonaws.com/'.format(S3_BUCKET)
G_CLIENT_ID = os.environ.get("OAUTH_ID")
G_CLIENT_SECRET = os.environ.get("OAUTH_KEY")
class ProductionConfig(Config):
DEBUG = False
ASSETS_DEBUG = False
class StagingConfig(Config):
DEVELOPMENT = False
DEBUG = False
ASSETS_DEBUG = False
class DevelopmentConfig(Config):
DEVELOPMENT = True
DEBUG = True
ASSETS_DEBUG = False
class TestingConfig(Config):
TESTING = True
DEBUG = True
ASSETS_DEBUG = True