# ====================================================================================================================== # ===================================================== general ======================================================== # ====================================================================================================================== # Secret key for decode cookies, generate new one for prod server, never share it SECRET_KEY = "SECRET_KEY" # Enable debug mode DEBUG = True # ====================================================================================================================== # =================================================== sqlalchemy ======================================================= # ====================================================================================================================== SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://root:sfkr4m37@localhost:3307/lbi_pipy' SQLALCHEMY_TRACK_MODIFICATIONS = False # ====================================================================================================================== # ================================================= flask-security ===================================================== # ====================================================================================================================== # Protected urls SECURITY_URL_PREFIX = "/admin" # Pasword config SECURITY_PASSWORD_HASH = "pbkdf2_sha512" # Secret salt for password, generate new one for prod server, never share it SECURITY_PASSWORD_SALT = "ATGUOHAELKiubahiughaerGOJAEGj" # Urls for login/logout/register SECURITY_LOGIN_URL = "/login/" SECURITY_LOGOUT_URL = "/logout/" SECURITY_REGISTER_URL = "/register/" # Urls for page just after login/logout/register SECURITY_POST_LOGIN_VIEW = "/admin/" SECURITY_POST_LOGOUT_VIEW = "/admin/" SECURITY_POST_REGISTER_VIEW = "/admin/" # Features SECURITY_REGISTERABLE = True # todo: How can I activate that properly? SECURITY_SEND_REGISTER_EMAIL = False # ====================================================================================================================== # =================================================== flask-babel ====================================================== # ====================================================================================================================== BABEL_DEFAULT_LOCALE = "fr_FR"