增加app.secret_key,加密session
This commit is contained in:
parent
dae5fc202c
commit
f9b72c82e0
|
|
@ -4,6 +4,9 @@ from app import create_app
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
app = create_app()
|
app = create_app()
|
||||||
|
app.secret_key = "16ba35d65e87935161077764c8d2d41aff6cbfee6660338642ae307c541e8711" # 用于加密Session数据
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
logger.info("Starting the application")
|
logger.info("Starting the application")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue