12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- from datetime import timedelta
- DEBUG = True
- SECRET_KEY = 'secret key'
- SECURITY_PASSWORD_SALT = 'you will never guess'
- SERVER_NAME = 'localhost:5000'
- PERMANENT_SESSION_LIFETIME = timedelta(days=3)
- REMEMBER_COOKIE_DURATION = timedelta(days=3)
- ONLINE_LAST_MINUTES = 5
- PER_PAGE = 12
- CACHE_TYPE = 'redis'
- CACHE_DEFAULT_TIMEOUT = 60
- CACHE_KEY_PREFIX = 'cache:'
- CACHE_REDIS_HOST = '127.0.0.1'
- CACHE_REDIS_PORT = '6379'
- CACHE_REDIS_PASSWORD = 'redis password'
- CACHE_REDIS_DB = 1
- MAIL_SERVER = 'smtp.qq.com'
- MAIL_PORT = 25
- MAIL_USE_TLS = True
- MAIL_USE_SSL = False
- MAIL_USERNAME = 'Your domain email'
- MAIL_PASSWORD = 'Your password'
- MAIL_DEFAULT_SENDER = 'Your domain email'
- SEND_LOGS = False
- RECEIVER = ["yourname@gmail.com"]
- INFO_LOG = "info.log"
- ERROR_LOG = "error.log"
- SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:password@localhost/db_name'
- AVATAR_FOLDER = 'avatars/'
- LANGUAGES = {'en': 'English', 'zh': 'Chinese'}
|