https://flask.palletsprojects.com/en/2.3.x/api/#flask.Flask.secret_key
API — Flask Documentation (2.3.x)
API This part of the documentation covers all the interfaces of Flask. For parts where Flask depends on external libraries, we document the most important right here and provide links to the canonical documentation. Application Object class flask.Flask(imp
flask.palletsprojects.com
app.secret_key
: flask app 생성시 session cookie
설정 방법 (권장)
https://flask.palletsprojects.com/en/1.1.x/config/
Configuration Handling — Flask Documentation (1.1.x)
Configuration Handling Applications need some kind of configuration. There are different settings you might want to change depending on the application environment like toggling the debug mode, setting the secret key, and other such environment-specific th
flask.palletsprojects.com
$ export FLASK_SECRET_KEY="5f352379324c22463451387a0aec5d2f"
$ export FLASK_MAIL_ENABLED=false
$ flask run
* Running on http://127.0.0.1:5000/
'Python' 카테고리의 다른 글
[JupyterNote Book] Jupytext Notebook -> Markdown (0) | 2023.09.30 |
---|---|
[Python] importlib 사용자 정의 리로드 (0) | 2023.08.25 |
Flask Error : AttributeError: 'Flask' object has no attribute 'login_manager' (0) | 2023.08.08 |
[PEP 703] Making the Global Interpreter Lock Optional in CPython (0) | 2023.07.09 |
[DigitalOcean] Slack_bolt deploy runtime error (0) | 2023.06.26 |