Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- import string
- class Config:
- SECRET_KEY = ''.join(random.choice(string.ascii_letters + string.digits) for i in range(60))
- SQLALCHEMY_DATABASE_URI = 'sqlite:///ares.db'
- SQLALCHEMY_TRACK_MODIFICATIONS = False
- UPLOAD_FOLDER = 'uploads'
- class DevelopmentConfig(Config):
- DEBUG = True
- class ProductionConfig(Config):
- DEBUG = False
- config = {
- 'dev': DevelopmentConfig,
- 'prod': ProductionConfig
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement