forked from dbsima/founded-in-romania
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
40 lines (30 loc) · 982 Bytes
/
config.py
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
import os
class Config(object):
DEBUG = False
TESTING = False
CSRF_ENABLED = True
# Secret key for the app
SECRET_KEY = os.environ['SECRET_KEY']
# Database URI that is written in venv/bin/activate
try:
SQLALCHEMY_DATABASE_URI = os.environ['DATABASE_URL']
except KeyError:
pass
# Credentials to access typeform API (https://admin.typeform.com/account)
TYPEFORM_FORM_UID = os.environ['TYPEFORM_FORM_UID']
TYPEFORM_API_KEY = os.environ['TYPEFORM_API_KEY']
# Credentials for admin
ADMIN_USER = os.environ['ADMIN_USER']
ADMIN_PASS = os.environ['ADMIN_PASS']
class ProductionConfig(Config):
DEBUG = False
class StagingConfig(Config):
DEVELOPMENT = True
DEBUG = True
class DevelopmentConfig(Config):
DEVELOPMENT = True
DEBUG = True
SQLALCHEMY_DATABASE_URI = \
'postgres://foundedinusa:foundedinusa@localhost:5432/foundedinusa'
class TestingConfig(Config):
TESTING = True