Advertisement
FlyFar

server/config.py

Jan 13th, 2024
621
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | Cybersecurity | 0 0
  1. import random
  2. import string
  3.  
  4.  
  5. class 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.  
  12. class DevelopmentConfig(Config):
  13.     DEBUG = True
  14.  
  15.  
  16. class ProductionConfig(Config):
  17.     DEBUG = False
  18.  
  19.  
  20. config = {
  21.     'dev': DevelopmentConfig,
  22.     'prod': ProductionConfig
  23. }
Tags: python RAT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement