-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathconfig.py
More file actions
30 lines (22 loc) · 796 Bytes
/
Copy pathconfig.py
File metadata and controls
30 lines (22 loc) · 796 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
# import os
# from dotenv import load_dotenv
# load_dotenv()
class Config(object):
DEBUG = False
TESTING = False
SQLALCHEMY_DATABASE_URI = 'sqlite:///../databases/development.db'
SECRET_KEY = "thisissecter"
SECURITY_PASSWORD_SALT = "thisissaltt"
SQLALCHEMY_TRACK_MODIFICATIONS = False
WTF_CSRF_ENABLED = False
SECURITY_TOKEN_AUTHENTICATION_HEADER = 'Authentication-Token'
class ProductionConfig(Config):
# SQLALCHEMY_DATABASE_URI = os.getenv("PROD_DB")
# SECRET_KEY = os.getenv("SECRET_KEY")
# SECURITY_PASSWORD_SALT = os.getenv("SECRET_SALT")
pass
class DevelopmentConfig(Config):
DEBUG = True
class TestingConfig(Config):
TESTING = True
SQLALCHEMY_DATABASE_URI = 'sqlite:///../databases/test.db'