· last year · Jan 14, 2024, 03:15 AM
1import random
2import string
3
4
5class Config:
6 SECRET_KEY = ''.join(random.choice(string.ascii_letters + string.digits) for i in range(60))
7 SQLALCHEMY_DATABASE_URI = 'sqlite:///ares.db'
8 SQLALCHEMY_TRACK_MODIFICATIONS = False
9 UPLOAD_FOLDER = 'uploads'
10
11
12class DevelopmentConfig(Config):
13 DEBUG = True
14
15
16class ProductionConfig(Config):
17 DEBUG = False
18
19
20config = {
21 'dev': DevelopmentConfig,
22 'prod': ProductionConfig
23}