Mini12306/config.py

16 lines
580 B
Python

import os
class Config:
# SECRET_KEY = os.environ.get('SECRET_KEY') or 'your_secret_key'
# SQLALCHEMY_TRACK_MODIFICATIONS = False
SECRET_KEY = '8665e31a29ab7e12cb0f92c1dbobj1e3a6a15230fb17'
# SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or
# 'postgresql://username:password@localhost:5432/your dbname'
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or ('postgresql://postgres:123456@localhost:54321'
'/mini12306_python')
SQLALCHEMY_TRACK_MODIFICATIONS = False