You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
566 B
25 lines
566 B
1 year ago
|
import os
|
||
|
import secrets
|
||
|
|
||
|
basedir = os.path.abspath(os.path.dirname(__file__))
|
||
|
|
||
|
|
||
|
class Config(object):
|
||
|
SECRET_KEY = os.environ.get('SECRET_KEY') or secrets.token_hex(24)
|
||
|
SQLALCHEMY_DATABASE_URI = os.environ.get(
|
||
|
'DATABASE_URL') or 'sqlite:///' + os.path.join(basedir, 'app.db')
|
||
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||
|
|
||
|
|
||
|
class ProductionConfig(Config):
|
||
|
DEBUG = False
|
||
|
TESTING = False
|
||
|
DEVELOPMENT = False
|
||
|
SQLALCHEMY_TRACK_MODIFICATIONS = True
|
||
|
|
||
|
|
||
|
class DevelopmentConfig(Config):
|
||
|
TESTING: True
|
||
|
DEVELOPMENT: True
|
||
|
DEBUG: True
|