소스 검색

flask: add page (#3290)

stets 5 년 전
부모
커밋
949ac07324
1개의 변경된 파일16개의 추가작업 그리고 0개의 파일을 삭제
  1. 16 0
      pages/common/flask.md

+ 16 - 0
pages/common/flask.md

@@ -0,0 +1,16 @@
+# flask
+
+> A general utility script for Flask applications. Loads the application defined in the `FLASK_APP` environment variable.
+> More information: <https://flask.palletsprojects.com/en/1.1.x/cli/>.
+
+- Run a development server:
+
+`flask run`
+
+- Show the routes for the app:
+
+`flask routes`
+
+- Run a Python interactive shell in the app's context:
+
+`flask shell`