{"id":2305,"date":"2020-12-11T10:42:52","date_gmt":"2020-12-11T01:42:52","guid":{"rendered":"https:\/\/www.nblog09.com\/w\/?p=2305"},"modified":"2022-01-18T16:30:50","modified_gmt":"2022-01-18T07:30:50","slug":"flask-templte","status":"publish","type":"post","link":"https:\/\/www.nblog09.com\/w\/2020\/12\/11\/flask-templte\/","title":{"rendered":"Flask\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u8868\u793a\u3002\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u5024\u3092\u6e21\u3059\u3002\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u5909\u66f4\u3059\u308b"},"content":{"rendered":"<div class=\"first-summary\">\n<ul>\n<li>Flask\u3067\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/li>\n<li>\u5024\u3092\u6e21\u3057\u3066\u52d5\u7684\u306b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u5185\u5bb9\u3092\u5909\u66f4\u3059\u308b<\/li>\n<li>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u5909\u66f4\u3059\u308b<\/li>\n<\/ul>\n<p>\u306b\u3064\u3044\u3066\u3001\u5fc5\u8981\u306a\u3060\u3051\u3001\u8a73\u7d30\u306b\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p>[rtoc_mokuji title=\"\" title_display=\"\" heading=\"h3\" list_h2_type=\"\" list_h3_type=\"\" display=\"\" frame_design=\"\" animation=\"\"]<\/p>\n<h2 class=\"title-border\"><strong>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u7528\u3044\u3066HTML\u30d5\u30a1\u30a4\u30eb\u3092\u8868\u793a\u3059\u308b<\/strong><\/h2>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306eHTML\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306epython\u30d5\u30a1\u30a4\u30eb\u3068\u540c\u3058\u968e\u5c64\u306etemplates\u30d5\u30a9\u30eb\u30c0\u5185\u306b\u914d\u7f6e\u3059\u308b\u3002<br \/>\n\u307e\u305f\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u8868\u793a\u3059\u308b\u306b\u306f\u3001<strong>render_template(from flask import render_template)<\/strong>\u3092\u7528\u3044\u308b<\/p>\n<div class=\"programming-gray\">\n<h4>Example<\/h4>\n<ul>\n<li>View\u306e\u8a18\u8ff0(app.py)<\/li>\n<\/ul>\n<div class=\"programming-inside\">\nfrom flask import Flask, render_template<\/p>\n<p>app = Flask(__name__)<\/p>\n<p>@app.route('\/index')<br \/>\ndef index():<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;return render_template('index.html') <strong> # templates\u30d5\u30a9\u30eb\u30c0\u5185\u306eindex.html\u3092\u8868\u793a\u3059\u308b<\/strong><\/p>\n<p>if __name__ == '__main__':<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;app.run()\n<\/p><\/div>\n<p>&nbsp;<br \/>\n\u6b21\u306b\u3001index.html\u3092\u5b9f\u88c5\u3059\u308b<\/p>\n<ul>\n<li>index.html\u306e\u8a18\u8ff0<\/li>\n<\/ul>\n<div class=\"programming-inside\">\n&lt;h1&gt;Hello&lt;\/h1&gt;\n<\/div>\n<p>&nbsp;<\/p>\n<ul>\n<li>\u30d5\u30a1\u30a4\u30eb\u306e\u968e\u5c64\u69cb\u9020<\/li>\n<\/ul>\n<p>app.py\u3068templates\u30d5\u30a9\u30eb\u30c0\u5185\u306bindex.html\u3092\u914d\u7f6e\u3059\u308b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2020\/12\/1.png\" alt=\"\" width=\"250\" height=\"104\" class=\"alignnone size-full wp-image-2308\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5b9f\u884c\u3057\u305f\u7d50\u679c<\/li>\n<\/ul>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u7acb\u3061\u4e0a\u3052\u3066\u3001http:\/\/127.0.0.1:5000\/index\u3092\u8868\u793a\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2020\/12\/1-1.png\" alt=\"\" width=\"300\" height=\"120\" class=\"alignnone size-full wp-image-2309\" \/><\/p>\n<\/div>\n<div class=\"customized-adsense\"><\/div>\n<h2 class=\"title-border\"><strong>\u5024\u3092\u6e21\u3057\u3066\u52d5\u7684\u306b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u8868\u793a\u3092\u5909\u66f4\u3059\u308b(\u6587\u5b57\u5217\u3001\u8f9e\u66f8\u3001\u30ea\u30b9\u30c8\u3001\u81ea\u4f5c\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9)<\/strong><\/h2>\n<p>\u5909\u6570\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u6e21\u3057\u3066\u3001\u305d\u306e\u5909\u6570\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u753b\u9762\u4e0a\u306b\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<br \/>\n\u3064\u307e\u308a\u3001\u52d5\u7684\u306b\u30da\u30fc\u30b8\u306e\u5185\u5bb9\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u6587\u5b57\u5217\u3084\u3001\u6570\u5024\u306a\u3069\u306e\u5909\u6570\u3092\u9001\u308b\u3053\u3068\u3082\u3042\u308c\u3070\u3001\u30ea\u30b9\u30c8\u3084\u8f9e\u66f8\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306a\u3069\u69d8\u3005\u306a\u578b\u3067\u5909\u6570\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u9001\u308a\u8868\u793a\u3059\u308b\u3053\u3068\u3082\u3042\u308b\u306e\u3067\u3001\u305d\u308c\u305e\u308c\u306e\u3084\u308a\u65b9\u3092\u4ee5\u4e0b\u306b\u8a18\u8f09\u3057\u305f\u3002<\/p>\n<div class=\"programming-gray\">\n<h4>Example<\/h4>\n<ul>\n<li><strong>\u5909\u6570\u3092\u6e21\u3057\u3066\u8868\u793a\u3059\u308b<\/strong><\/li>\n<\/ul>\n<div class=\"programming-inside\">\n<strong>\u30d3\u30e5\u30fc\u306e\u5b9f\u88c5<\/strong><br \/>\n@app.route('\/index')<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;name = 'Taro'<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;age = 12<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;return render_template('index.html', name=name, age = age) <strong> # name\u3068age\u3092\u5909\u6570\u3068\u3057\u3066\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u6e21\u3059<\/strong><\/p>\n<p>if __name__ == '__main__':<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;app.run()\n<\/p><\/div>\n<p>&nbsp;<br \/>\n\u6b21\u306b\u3001index.html\u3092\u5b9f\u88c5\u3059\u308b<\/p>\n<ul>\n<li>index.html\u306e\u8a18\u8ff0<\/li>\n<\/ul>\n<div class=\"programming-inside\">\n<strong>&lt;!-- {{ }} \u3067\u6e21\u3057\u305f\u5909\u6570\u3092\u56f2\u3046\u3068\u305d\u306e\u5909\u6570\u306e\u4e2d\u8eab\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3002 --&gt;<\/strong><br \/>\n&lt;h2&gt;My name is {{ name }} age is {{ age }}&lt;\/h2&gt;\n<\/div>\n<p>&nbsp;<br \/>\n\u6b21\u306b\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u7acb\u3061\u4e0a\u3052\u3066http:\/\/127.0.0.1:5000\/index\u3092\u8868\u793a\u3059\u308b\u3068\u3001name\u3068age\u306b\u5024\u304c\u6e21\u3055\u308c\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u308b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2020\/12\/1-2.png\" alt=\"\" width=\"500\" height=\"228\" class=\"alignnone size-full wp-image-2312\" \/><\/p>\n<p>&nbsp;<br \/>\n\u6b21\u306b\u3001\u30ea\u30b9\u30c8\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u6e21\u3057\u3066\u8868\u793a\u3057\u3066\u307f\u308b\u3002<\/p>\n<ul>\n<li><strong>\u30ea\u30b9\u30c8\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u6271\u3046<\/strong><\/li>\n<\/ul>\n<div class=\"programming-inside\">\n<strong>\u30d3\u30e5\u30fc\u306e\u5b9f\u88c5<\/strong><br \/>\n@app.route('\/index')<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;gafa = ['apple', 'google', 'facebook', 'amazon']<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;return render_template('index.html', gafa=gafa) <strong> # gafa\u3092\u5909\u6570\u3068\u3057\u3066\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u6e21\u3059<\/strong><\/p>\n<p>if __name__ == '__main__':<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;app.run()\n<\/p><\/div>\n<p>&nbsp;<br \/>\n\u6b21\u306b\u3001index.html\u3092\u5b9f\u88c5\u3059\u308b<\/p>\n<ul>\n<li>index.html\u306e\u8a18\u8ff0<\/li>\n<\/ul>\n<div class=\"programming-inside\">\n&lt;p&gt;{{ gafa }}&lt;\/p&gt; <strong>&lt;!-- ['apple', 'google', 'facebook', 'amazon'] --&gt;<\/strong><br \/>\n&lt;p&gt;{{ gafa.0 }}&lt;\/p&gt; <strong>&lt;!-- \u30a4\u30f3\u30c7\u30c3\u30af\u30b90\u306eapple --&gt;<\/strong><br \/>\n&lt;p&gt;{{ gafa.2 }}&lt;\/p&gt; <strong>&lt;!-- \u30a4\u30f3\u30c7\u30c3\u30af\u30b92\u306efacebook \u304c\u8868\u793a\u3055\u308c\u308b--&gt;<\/strong><br \/>\n&lt;ul&gt;<br \/>\n{% for g in gafa %} <strong>&lt;!-- \u30eb\u30fc\u30d7\u3055\u305b\u3066\u305d\u308c\u305e\u308c\u8981\u7d20\u3092\u53d6\u308a\u51fa\u3059 --&gt;<\/strong><br \/>\n  &lt;li&gt;{{ g }}&lt;\/li&gt; <strong>&lt;!-- apple google facebook amazon\u304c\u305d\u308c\u305e\u308c\u8868\u793a\u3055\u308c\u308b --&gt;<\/strong><br \/>\n{% endfor %}<br \/>\n&lt;\/ul&gt;\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u6b21\u306b\u3001\u8f9e\u66f8\u578b\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u6e21\u3057\u3066\u8868\u793a\u3057\u3066\u307f\u308b\u3002<\/p>\n<ul>\n<li><strong>\u8f9e\u66f8\u578b\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u6271\u3046<\/strong><\/li>\n<\/ul>\n<div class=\"programming-inside\">\n<strong>\u30d3\u30e5\u30fc\u306e\u5b9f\u88c5<\/strong><br \/>\n@app.route('\/index')<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;user = {'name': 'Taro', 'age': 17}<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;return render_template('index.html', user=user) <strong> # user\u3092\u5909\u6570\u3068\u3057\u3066\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u6e21\u3059<\/strong><\/p>\n<p>if __name__ == '__main__':<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;app.run()\n<\/p><\/div>\n<p>&nbsp;<br \/>\n\u6b21\u306b\u3001index.html\u3092\u5b9f\u88c5\u3059\u308b<\/p>\n<ul>\n<li>index.html\u306e\u8a18\u8ff0<\/li>\n<\/ul>\n<div class=\"programming-inside\">\n<strong>&lt;!-- {{ \u5909\u6570\u540d.\u30ad\u30fc\u540d }}\u3068\u3059\u308b\u3068\u5024\u3092\u53d6\u308a\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/strong><br \/>\n&lt;h2&gt;My name is {{ user.name }} age is {{ user.age }}&lt;\/h2&gt;<\/p>\n<p><strong>&lt;!-- {{ \u5909\u6570\u540d['\u30ad\u30fc\u540d'] }}\u3068\u3057\u3066\u3082\u540c\u69d8\u306b\u5024\u3092\u53d6\u308a\u51fa\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3002<\/strong><br \/>\n&lt;h2&gt;My name is {{ user['name'] }} age is {{ user['age'] }}&lt;\/h2&gt;<\/p>\n<p>{% for key in user %} <strong>&lt;!-- \u30eb\u30fc\u30d7\u3057\u3066\u30ad\u30fc\u3092\u53d6\u308a\u51fa\u3059 --&gt;<\/strong><br \/>\n{{ key }} <strong>&lt;!-- \u30ad\u30fc\u3060\u3051\u8868\u793a --&gt;<\/strong><br \/>\n{{ user[key] }} <strong>&lt;!-- \u30ad\u30fc\u3092\u5229\u7528\u3057\u3066\u5909\u6570\u306e\u4e2d\u306e\u5024\u3092\u53d6\u308a\u51fa\u3059 --&gt;<\/strong><br \/>\n{% endfor %}<\/p>\n<\/div>\n<p>&nbsp;<br \/>\n\u6b21\u306b\u3001\u4f5c\u6210\u3057\u305f\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u6e21\u3057\u3066\u8868\u793a\u3057\u3066\u307f\u308b\u3002<\/p>\n<ul>\n<li><strong>\u4f5c\u6210\u3057\u305f\u30af\u30e9\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u6271\u3046<\/strong><\/li>\n<\/ul>\n<div class=\"programming-inside\">\n<strong># views.py<\/strong><br \/>\nfrom flask import Flask, render_template<br \/>\napp = Flask(__name__)<\/p>\n<p>class User: <strong># \u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b<\/strong><br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;def __init__(self, name, age):<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self.name = name <strong> # \u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5b9a\u7fa9<\/strong><br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self.age = age<\/p>\n<p>@app.route('\/index')<br \/>\ndef index():<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;user = User(name='Taro', age=18) <strong> # \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u4f5c\u6210<\/strong><br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;return render_template('index.html', user=user) <strong> # \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u6e21\u3059<\/strong><\/p>\n<p>if __name__ == '__main__':<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;app.run(debug=True)\n<\/p><\/div>\n<p>&nbsp;<br \/>\n\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u6e21\u3057\u305fuser\u306e\u30d7\u30ed\u30d1\u30c6\u30a3name\u3068age\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306b\u306f\u3001{{ user.name }} {{ user.age }}\u3068\u3059\u308c\u3070\u3088\u3044\u3002<\/p>\n<div class=\"programming-inside\">\n<strong># template.html<\/strong><br \/>\n{{ user.name }} <strong>&lt;!-- .name\u3067\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30a2\u30af\u30bb\u30b9 --&gt;<\/strong><br \/>\n{{ user.age }} <strong>&lt;!-- .age\u3067\u30d7\u30ed\u30d1\u30c6\u30a3\u306b\u30a2\u30af\u30bb\u30b9 --&gt;<\/strong>\n<\/div>\n<\/div>\n<p>\u4ee5\u4e0a\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u5024\u3092\u6e21\u3059\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u305f\u3002<\/p>\n<div class=\"customized-adsense\"><\/div>\n<h2 class=\"title-border\"><strong>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u5909\u66f4<\/strong><\/h2>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30d5\u30a9\u30eb\u30c0\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u7acb\u3061\u4e0a\u3052\u30d5\u30a1\u30a4\u30eb\u3068\u540c\u3058\u968e\u5c64\u306etemplates\u30d5\u30a9\u30eb\u30c0\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.nblog09.com\/w\/wp-content\/uploads\/2020\/12\/1.png\" alt=\"\" width=\"250\" height=\"104\" class=\"alignnone size-full wp-image-2308\" \/><\/p>\n<p>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u30d1\u30b9\u3092\u5909\u3048\u308b\u306b\u306f\u3001FlasK(__name__)\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u4f5c\u6210\u6642\u306b\u3001template_folder\u3092\u7b2c2\u5f15\u6570\u306b\u53d6\u308c\u3070\u3088\u3044\u3067\u3059\u3002<\/p>\n<div class=\"programming-gray\">\n<h4>Example<\/h4>\n<ul>\n<li>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30d1\u30b9\u306e\u5909\u66f4(\u76f8\u5bfe\u30d1\u30b9)<\/li>\n<\/ul>\n<div class=\"programming-inside\">\nfrom flask import Flask, render_template<br \/>\nimport os<\/p>\n<p><strong># template_folder\u5f15\u6570\u3092\u6307\u5b9a\u3057\u3066\u3001\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3068\u540c\u3058\u968e\u5c64\u306etemplates2\u306e\u4e2d\u306emyfolder\u306b\u5909\u66f4<\/strong><br \/>\n<strong># os.path.join\u3092\u7528\u3044\u308b\u3068\u3001Windows, Linux\u306e\u74b0\u5883\u306b\u4f9d\u5b58\u305b\u305a\u306b\u30d5\u30a9\u30eb\u30c0\u306e\u30d1\u30b9\u3092\u4f5c\u6210\u3067\u304d\u308b<\/strong><br \/>\napp = Flask(__name__, template_folder=os.path.join(os.path.dirname(__file__), 'templates2', 'myfolder'))<\/p>\n<p>@app.route('\/index')<br \/>\ndef index():<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;return render_template('index.html') <strong> # templates\u30d5\u30a9\u30eb\u30c0\u5185\u306eindex.html\u3092\u8868\u793a\u3059\u308b<\/strong><\/p>\n<p>if __name__ == '__main__':<br \/>\n&nbsp;&nbsp;&nbsp;&nbsp;app.run()\n<\/p><\/div>\n<\/div>\n<p>\u4ee5\u4e0a\u3001Flask\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u5229\u7528\u65b9\u6cd5\u306e\u4e00\u3064\u76ee\u3068\u3057\u3066\u3001template\u306e\u4f5c\u6210\u3068View\u304b\u3089\u5024\u3092\u9001\u308b\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30d5\u30a9\u30eb\u30c0\u306e\u5909\u66f4\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8a18\u8ff0\u3057\u307e\u3057\u305f\u3002<\/p>\n<div class=\"flask-adsense\"><\/div>\n<hr>\n<div class=\"previous_next_button\">\n    <a href=\"https:\/\/www.nblog09.com\/w\/2020\/11\/26\/flask-routing\/\"><\/p>\n<div class=\"previous_chapter\">\n<p class=\"title\">&laquo; Previous<\/p>\n<p>      <span class=\"sub_title\">URL\u30de\u30c3\u30d4\u30f3\u30b0<\/span>\n    <\/div>\n<p><\/a><a href=\"https:\/\/www.nblog09.com\/w\/2020\/12\/11\/flask-debug\/\"><\/p>\n<div class=\"next_chapter\">\n<p class=\"title\">Next &raquo;<\/p>\n<p>      <span class=\"sub_title\">DEBUG\u306e\u65b9\u6cd5<\/span>\n       <\/div>\n<p>    <\/a>\n<\/div>\n<hr>\n<div class=\"course_link\">\n<a href=\"https:\/\/www.nblog09.com\/w\/0%e3%81%8b%e3%82%89%e5%ad%a6%e3%81%b6flask%e5%85%a5%e9%96%80%e8%ac%9b%e5%ba%a7\/\"><\/p>\n<div class=\"inner\">\n<p class=\"title\">Flask\u5165\u9580\u8a18\u4e8b\u4e00\u89a7\u306f\u3053\u3061\u3089<\/p>\n<\/div>\n<p><\/a>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Flask\u3067\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9 \u5024\u3092\u6e21\u3057\u3066\u52d5\u7684\u306b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u5185\u5bb9\u3092\u5909\u66f4\u3059\u308b \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u5909\u66f4\u3059\u308b \u306b\u3064\u3044\u3066\u3001\u5fc5\u8981\u306a\u3060\u3051\u3001\u8a73\u7d30\u306b\u8aac\u660e\u3057\u307e\u3059\u3002 &nbsp; [rtoc_mokuji title=\" [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_uag_custom_page_level_css":"","_uf_show_specific_survey":0,"_uf_disable_surveys":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[213],"tags":[212,14,125],"class_list":{"0":"post-2305","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-flask","7":"tag-flask","8":"tag-python","9":"tag-template","10":"entry","11":"has-post-thumbnail"},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"home-middle":false,"home-top":false,"sidebar-thumbnail":false},"uagb_author_info":{"display_name":"9nmatsumoto","author_link":"https:\/\/www.nblog09.com\/w\/author\/9nmatsumoto\/"},"uagb_comment_info":1,"uagb_excerpt":"Flask\u3067\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9 \u5024\u3092\u6e21\u3057\u3066\u52d5\u7684\u306b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u5185\u5bb9\u3092\u5909\u66f4\u3059\u308b \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30d5\u30a9\u30eb&hellip;","_links":{"self":[{"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/posts\/2305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/comments?post=2305"}],"version-history":[{"count":16,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/posts\/2305\/revisions"}],"predecessor-version":[{"id":4733,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/posts\/2305\/revisions\/4733"}],"wp:attachment":[{"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/media?parent=2305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/categories?post=2305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nblog09.com\/w\/wp-json\/wp\/v2\/tags?post=2305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}