Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c96df19

Browse files
update "fapp" snippet
change **host:** to **host=**
1 parent 09fe080 commit c96df19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎snippets/controls.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"Flask App": {
1111
"prefix": "fapp",
12-
"body": "from flask import Flask, render_template\napp = Flask(__name__)\n\n\n@app.route('${1:/}')\ndef ${2:index}():\n return render_template('${3:index}.html')\n\nif __name__ == '__main__':\n app.run(host:'${4:127.0.0.1}', port=${5:8000}, debug=${6:True})\n0ドル 0ドル"
12+
"body": "from flask import Flask, render_template\napp = Flask(__name__)\n\n\n@app.route('${1:/}')\ndef ${2:index}():\n return render_template('${3:index}.html')\n\nif __name__ == '__main__':\n app.run(host='${4:127.0.0.1}', port=${5:8000}, debug=${6:True})\n0ドル 0ドル"
1313
},
1414
"Flask route": {
1515
"prefix": "froute",
@@ -55,4 +55,4 @@
5555
"prefix": "flog",
5656
"body": "app.logger.${1:debug}(\"${2:A message}\")\n0ドル"
5757
}
58-
}
58+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /