{"id":3085,"date":"2024-09-19T15:00:09","date_gmt":"2024-09-19T06:00:09","guid":{"rendered":"https:\/\/www.miraiserver.ne.jp\/column\/?p=3085"},"modified":"2025-08-18T16:25:56","modified_gmt":"2025-08-18T07:25:56","slug":"about_flask","status":"publish","type":"post","link":"https:\/\/www.miraiserver.ne.jp\/column\/about_flask\/","title":{"rendered":"Flask\u3068\u306f\uff1f\u57fa\u672c\u77e5\u8b58\u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u307e\u3067\u8a73\u3057\u304f\u89e3\u8aac\uff01"},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-4413 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/Flask\u3068\u306f.webp\" alt=\"\" width=\"900\" height=\"506\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/Flask\u3068\u306f.webp 900w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/Flask\u3068\u306f-300x169.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/Flask\u3068\u306f-640x360.webp 640w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/Flask\u3068\u306f-768x432.webp 768w\" sizes=\"(max-width: 900px) 100vw, 900px\" \/><\/p>\n<p><strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">Flask\uff08\u30d5\u30e9\u30b9\u30af\uff09<\/span><\/strong>\u3068\u306f\u3001<strong><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">Python\u3067\u66f8\u304b\u308c\u305fWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/span><\/strong>\u3067\u3059\u3002<\/p>\n<p>\u672c\u8a18\u4e8b\u3067\u306fWeb\u30a2\u30d7\u30ea\u958b\u767a\u8005\u306b\u5411\u3051\u3066\u3001<strong><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">Flask\u306e\u6a5f\u80fd\u3084\u7279\u5fb4\u306e\u307b\u304b\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u304a\u3088\u3073\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/span><\/strong>\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n<div class=\"well2\" style=\"text-align: center;\">\n<p style=\"text-align: center;\"><span style=\"color: #ff0000;\"><strong>\uff3c 2\u9031\u9593\u7121\u6599\u3067\u304a\u8a66\u3057\u3067\u304d\u307e\u3059\uff01 \uff0f<br \/>\n<a href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-frame-btn&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-110 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_300x250_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"300\" height=\"250\" \/><\/a><\/strong><\/span><span style=\"text-decoration: underline;\"><strong>Unix\/Linux\u7cfbVPS\u3092\u3053\u306e\u4fa1\u683c\u3067\uff01<\/strong><\/span><span style=\"color: #ff0000;\"><strong><br \/>\n<\/strong><\/span>\u30fb<span style=\"font-size: 14px;\">\u5168\u30d7\u30e9\u30f3SSD\u642d\u8f09\u3067\u30b3\u30b9\u30c8\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u25ce<\/span><br \/>\n<span style=\"font-size: 14px;\">\u30fb\u8c4a\u5bcc\u306aOS\u30e9\u30a4\u30f3\u30a2\u30c3\u30d7<\/span><br \/>\n<span style=\"font-size: 14px;\">\u30fb\u5145\u5b9f\u306e\u7121\u6599\u30b5\u30dd\u30fc\u30c8<\/span><br \/>\n<a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-frame-btn&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\">VPS\u3092\u4f7f\u3063\u3066\u307f\u308b<\/a><\/p>\n<\/div>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#Flask\"><span class=\"toc_number toc_depth_1\">1<\/span> Flask\u3068\u306f<\/a><ul><li><a href=\"#Flask-2\"><span class=\"toc_number toc_depth_2\">1.1<\/span> Flask\u306e\u6982\u8981<\/a><\/li><li><a href=\"#Flask-3\"><span class=\"toc_number toc_depth_2\">1.2<\/span> Flask\u306e\u6a5f\u80fd<\/a><\/li><\/ul><\/li><li><a href=\"#Flask-4\"><span class=\"toc_number toc_depth_1\">2<\/span> Flask\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806<\/a><ul><li><a href=\"#i\"><span class=\"toc_number toc_depth_2\">2.1<\/span> \u524d\u63d0\u6761\u4ef6<\/a><\/li><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_2\">2.2<\/span> \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806<\/a><\/li><\/ul><\/li><li><a href=\"#Flask-5\"><span class=\"toc_number toc_depth_1\">3<\/span> Flask\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/a><ul><li><a href=\"#i-3\"><span class=\"toc_number toc_depth_2\">3.1<\/span> \u30b5\u30f3\u30d7\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210<\/a><\/li><li><a href=\"#i-4\"><span class=\"toc_number toc_depth_2\">3.2<\/span> \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0<\/a><\/li><li><a href=\"#i-5\"><span class=\"toc_number toc_depth_2\">3.3<\/span> \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/a><\/li><\/ul><\/li><li><a href=\"#i-6\"><span class=\"toc_number toc_depth_1\">4<\/span> \u307e\u3068\u3081<\/a><\/li><li><a href=\"#UbuntuVPS\"><span class=\"toc_number toc_depth_1\">5<\/span> Ubuntu\u3092VPS\u3067\u5229\u7528\u3059\u308b\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/a><\/li><\/ul><\/div>\n<h2 class=\"styled_h2\"><span id=\"Flask\">Flask\u3068\u306f<\/span><\/h2>\n<h3 class=\"styled_h3\"><span id=\"Flask-2\">Flask\u306e\u6982\u8981<\/span><\/h3>\n<p><strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">Flask<\/span><\/strong>\u306f\u3001<strong><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">Python\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u66f8\u304b\u308c\u305f\u8efd\u91cf\u306aWeb\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/span><\/strong>\u3067\u30012010\u5e744\u6708\u306bArmin Ronacher\u306b\u3088\u3063\u3066\u958b\u767a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u300c<strong><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u30de\u30a4\u30af\u30ed\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/span><\/strong>\u300d\u3068\u3057\u3066\u5206\u985e\u3055\u308c\u308bFlask\u306f\u3001<strong><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u6700\u5c0f\u9650\u306e\u30b3\u30a2\u6a5f\u80fd\u3092\u6301\u3061\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u3084\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u5fc5\u8981\u306a\u6a5f\u80fd\u306e\u307f\u3092\u8ffd\u52a0\u3067\u304d\u308b\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002<\/span><\/strong><\/p>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001<strong><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u958b\u767a\u8005\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u898f\u6a21\u3084\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u5fc5\u8981\u306a\u6a5f\u80fd\u3060\u3051\u3092\u53d6\u308a\u5165\u308c\u3001\u52b9\u7387\u7684\u306a\u958b\u767a\u3092\u884c\u3048\u307e\u3059\u3002<\/span><\/strong><\/p>\n<p>Flask\u306f\u3001\u4ee5\u4e0b\u306e\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 40px;\"><strong>\u30fb<span style=\"color: #ff9900;\">\u30b7\u30f3\u30d7\u30eb\u3067\u8efd\u91cf<\/span><\/strong><br \/>\n<strong>\u30fb<span style=\"color: #ff9900;\">\u67d4\u8edf\u6027\u3001\u62e1\u5f35\u6027\u304c\u9ad8\u3044<\/span><\/strong><br \/>\n<strong>\u30fb<span style=\"color: #ff9900;\">\u5b66\u7fd2\u3057\u3084\u3059\u3044<\/span><\/strong><\/p>\n<p>\u307e\u305f\u3001Flask\u306f<strong><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">Python\u306e\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u4e92\u63db\u6027\u304c\u9ad8\u304f\u3001\u521d\u5fc3\u8005\u304b\u3089\u7d4c\u9a13\u8005\u307e\u3067\u958b\u767a\u8005\u306b\u4eba\u6c17\u306eWeb\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002<\/span><\/strong><\/p>\n<div class=\"cardlink\">\r\n    <a class=\"image\" href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_python\/\">\r\n     <img src=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2025\/08\/\u5dee\u3057\u66ff\u3048\u7528-21\u6e08.webp\">\r\n    <\/a>\r\n    <div class=\"content\">\r\n     <div class=\"title_area\">\r\n      <p class=\"date\">2024.04.11<\/p>\r\n      <h4 class=\"title\">\r\n       <a href=\"https:\/\/www.miraiserver.ne.jp\/column\/about_python\/\">Python\u3068\u306f\u3002\u7279\u5fb4\u3001\u30e1\u30ea\u30c3\u30c8\u3001\u5b9f\u969b\u306e\u6d3b\u7528\u4f8b\u3092\u89e3\u8aac\uff01<\/a>\r\n      <\/h4>\r\n     <\/div>\r\n     <p class=\"desc\"><span>\r\n\r\n\u300c\u4eca\u4eba\u6c17\u306e\u3042\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306fPython\u300d\r\n\r\n\u305d\u3093\u306a\u30d5\u30ec\u30fc\u30ba\u3092\u805e\u3044\u305f\u3053\u3068\u304c\u3042\u308b\u4eba\u3082\u591a\u3044\u306e\u3067\u306f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\uff1f\r\n\r\nPyt...<\/span><\/p>\r\n    <\/div>\r\n   <\/div>\n\n<h3 class=\"styled_h3\"><span id=\"Flask-3\">Flask\u306e\u6a5f\u80fd<\/span><\/h3>\n<p style=\"padding-left: 40px;\">\u30fb<span style=\"color: #ff9900;\"><strong>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0<\/strong><\/span><br \/>\n\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3068\u306f\u3001<strong><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">URL\u30d1\u30b9\u3068\u5bfe\u5fdc\u3059\u308b\u51e6\u7406\u3092\u7d50\u3073\u3064\u3051\u308b\u3053\u3068<\/span><\/strong>\u3067\u3059\u3002<br \/>\nFlask\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u6a5f\u80fd\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30ea\u30af\u30a8\u30b9\u30c8URL\u306b\u5fdc\u3058\u305f\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\n@app.route(&#8216;\/&#8217;)\u306e\u3088\u3046\u306a\u30b7\u30f3\u30d7\u30eb\u306a\u8a18\u8ff0\u3067URL\u3068\u95a2\u6570\u3092\u95a2\u9023\u4ed8\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u8907\u96d1\u306aWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u30fb<span style=\"color: #ff9900;\"><strong>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3<\/strong><\/span><br \/>\n\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3\u3068\u306f\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\"><strong>HTML\u3068\u30d7\u30ed\u30b0\u30e9\u30e0\u30b3\u30fc\u30c9\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u52d5\u7684\u306aWeb\u30da\u30fc\u30b8\u3092\u751f\u6210\u3059\u308b\u4ed5\u7d44\u307f<\/strong><\/span>\u3067\u3059\u3002<br \/>\n<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">Flask\u306f<strong>Jinja2<\/strong>\u3068\u3044\u3046\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3\u3092\u63a1\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/span><br \/>\n\u3053\u308c\u306fHTML\u3068Python\u30b3\u30fc\u30c9\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u52d5\u7684\u306aWeb\u30da\u30fc\u30b8\u306e\u751f\u6210\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<br \/>\nJinja2\u3092\u4f7f\u3048\u3070\u3001\u5909\u6570\u3084\u5236\u5fa1\u69cb\u6587\u3092\u7c21\u5358\u306b\u57cb\u3081\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30c7\u30fc\u30bf\u306b\u57fa\u3065\u3044\u305f\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u66f4\u65b0\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u30fb<span style=\"color: #ff9900;\"><strong>\u30ea\u30af\u30a8\u30b9\u30c8\u51e6\u7406<\/strong><\/span><br \/>\n\u30ea\u30af\u30a8\u30b9\u30c8\u51e6\u7406\u3068\u306f\u3001<span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\"><strong>HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u53d6\u308a\u3001\u305d\u308c\u306b\u5fdc\u3058\u305f\u51e6\u7406\u3092\u884c\u3046\u4ed5\u7d44\u307f<\/strong><\/span>\u3067\u3059\u3002<br \/>\nFlask\u306fHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u51e6\u7406\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3001GET\u3084POST\u306a\u3069\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u5bfe\u5fdc\u3057\u305f\u30eb\u30fc\u30c8\u8a2d\u5b9a\u304c\u53ef\u80fd\u3067\u3059\u3002<br \/>\n\u307e\u305f\u3001request\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u901a\u3058\u3066\u3001\u30d5\u30a9\u30fc\u30e0\u30c7\u30fc\u30bf\u3084JSON\u306a\u3069\u306e\u5165\u529b\u30c7\u30fc\u30bf\u304c\u6271\u3048\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306b\u3088\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u5165\u529b\u306b\u5fdc\u3058\u305f\u67d4\u8edf\u306a\u51e6\u7406\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u30fb<span style=\"color: #ff9900;\"><strong>\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406<\/strong><\/span><br \/>\n\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u306f<strong><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u3084\u72b6\u614b\u3092\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u4fdd\u6301\u3057\u3001Cookie\u306b\u6697\u53f7\u5316\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/span><\/strong><br \/>\n\u3053\u308c\u306b\u3088\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u518d\u8a2a\u3057\u3066\u3082\u72b6\u614b\u3092\u7dad\u6301\u3067\u304d\u3001\u30bb\u30ad\u30e5\u30a2\u3067\u30d1\u30fc\u30bd\u30ca\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30b5\u30fc\u30d3\u30b9\u63d0\u4f9b\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u30fb<span style=\"color: #ff9900;\"><strong>\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u306e\u63d0\u4f9b<\/strong><\/span><br \/>\nFlask\u306f<strong><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\/static\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5229\u7528\u3057\u3066CSS\u3084JavaScript\u3001\u753b\u50cf\u306a\u3069\u306e\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/span><\/strong><br \/>\n\u3053\u306e\u6a5f\u80fd\u306b\u3088\u308a\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u6700\u9069\u5316\u3055\u308c\u3001Web\u30da\u30fc\u30b8\u306e\u8868\u793a\u901f\u5ea6\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002<\/p>\n<p style=\"text-align: center;\"><span style=\"color: #008080;\"><strong>\uff3c 2\u9031\u9593\u7121\u6599\u3067\u304a\u8a66\u3057\u3067\u304d\u307e\u3059\uff01 \uff0f<\/strong><\/span><br \/>\n<a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=btn-vps&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener noreferrer\">VPS\u3092\u4f7f\u3063\u3066\u307f\u308b<\/a><\/p>\n<h2 class=\"styled_h2\"><span id=\"Flask-4\">Flask\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806<\/span><\/h2>\n<h3 class=\"styled_h3\"><span id=\"i\">\u524d\u63d0\u6761\u4ef6<\/span><\/h3>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u306eVPS\u3092\u5229\u7528\u3057Linux\u74b0\u5883\u306e\u4eee\u60f3\u30de\u30b7\u30f3\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>Flask\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308bLinux\u74b0\u5883\u306e\u30b9\u30da\u30c3\u30af\u306b\u3064\u3044\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 40px;\">\u3010Linux\u74b0\u5883\u3011<br \/>\n<strong>\u30fb<span style=\"color: #ff9900;\">OS\uff1aUbuntu 22.04.2 LTS<\/span><\/strong><br \/>\n<strong>\u30fb<span style=\"color: #ff9900;\">CPU\uff1a4\u30b3\u30a2<\/span><\/strong><br \/>\n<strong>\u30fb<span style=\"color: #ff9900;\">Memory\uff1a4GB<\/span><\/strong><br \/>\n<strong>\u30fb<span style=\"color: #ff9900;\">Disk\uff1aSSD300GB<\/span><\/strong><\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\">\u203b<strong>\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/strong>\u3067\u306fUbuntu 22.04.2 LTS\u306a\u3069\u306eOS\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u72b6\u614b\u304b\u3089\u304a\u4f7f\u3044\u3044\u305f\u3060\u3051\u307e\u3059\u3002<\/span><\/p>\n<p>\u307e\u305f\u3001Flask\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u4e8b\u524d\u306b\u4ee5\u4e0b\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 40px;\"><strong>\u30fb<span style=\"color: #ff9900;\">Python\u74b0\u5883\uff1aPython 3.7\u4ee5\u4e0a\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068<\/span><\/strong><br \/>\n<strong>\u30fb<span style=\"color: #ff9900;\">\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\uff1apip\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068<\/span><\/strong><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u306e\u6982\u8981\u306f\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002<\/p>\n<p style=\"padding-left: 40px;\">1. \u524d\u63d0\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306e\u78ba\u8a8d<br \/>\n2. Flask\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<br \/>\n3. Flask\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306e\u78ba\u8a8d<\/p>\n<h3 class=\"styled_h3\"><span id=\"i-2\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806<\/span><\/h3>\n<h4 class=\"styled_h4\">\u624b\u9806\uff11\uff1a\u524d\u63d0\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306e\u78ba\u8a8d<\/h4>\n<p>\u524d\u63d0\u3068\u306a\u308bPython\u74b0\u5883\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\uff11\uff0ePython\u306e\u78ba\u8a8d<\/p>\n<p>\u307e\u305a\u3001Python\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308c\u3070\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong>python3 -V<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-4414\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf2.webp\" alt=\"\" width=\"600\" height=\"52\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf2.webp 384w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf2-300x26.webp 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067Python\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong>sudo apt-get update<\/strong><br \/>\n<strong>sudo apt-get install python3<\/strong><\/p>\n<p>\uff12\uff0e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\uff08pip\uff09\u306e\u78ba\u8a8d<\/p>\n<p>\u7d9a\u3044\u3066\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\uff08pip\uff09\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u308c\u3070\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong>pip &#8211;version<\/strong><\/p>\n<p style=\"font-size: 16px;\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-4415\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf3.webp\" alt=\"\" width=\"600\" height=\"37\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf3.webp 581w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf3-300x19.webp 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong>sudo apt-get update<\/strong><br \/>\n<strong>sudo apt-get install python3-pip<\/strong><\/p>\n<h4 class=\"styled_h4\">\u624b\u98062\uff1aFlask\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h4>\n<p>pip\u3092\u4f7f\u7528\u3057\u3066Flask\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong>pip install Flask<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-thumbnail wp-image-4416\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf4-584x360.webp\" alt=\"\" width=\"584\" height=\"360\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf4-584x360.webp 584w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf4-300x185.webp 300w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf4.webp 602w\" sizes=\"(max-width: 584px) 100vw, 584px\" \/><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u3001\u4e0a\u8a18\u306e\u753b\u50cf\u306e\u9ec4\u8272\u3044\u6587\u8a00\u3067\u8b66\u544a\u6587\u304c\u8868\u793a\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fflask\u306b\u30d1\u30b9\u304c\u901a\u3063\u3066\u3044\u306a\u3044\u3053\u3068\u3092\u610f\u5473\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u304b\u3001\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3067\u30d1\u30b9\u3092\u901a\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p class=\"well2\"><strong>export PATH=$PATH:~\/.local\/bin<\/strong><\/p>\n<h4 class=\"styled_h4\">\u624b\u98063\uff1aFlask\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u306e\u78ba\u8a8d<\/h4>\n<p>Flask\u304c\u6b63\u3057\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001Flask\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u304c\u8868\u793a\u3055\u308c\u307e\u3059\uff61<\/p>\n<p class=\"well2\"><strong>flask <span style=\"color: #ff0000;\"> \u2014<\/span>version<span style=\"color: #ff0000;\">\uff08\u203b \u2014\u306f-\u3092\uff12\u56de\u91cd\u306d\u308b\uff09<\/span><\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4417\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf5.webp\" alt=\"\" width=\"545\" height=\"109\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf5.webp 545w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf5-300x60.webp 300w\" sizes=\"(max-width: 545px) 100vw, 545px\" \/><\/p>\n<p style=\"text-align: center;\"><span style=\"color: #008080;\"><strong>\uff3c 2\u9031\u9593\u7121\u6599\u3067\u304a\u8a66\u3057\u3067\u304d\u307e\u3059\uff01 \uff0f<\/strong><\/span><br \/>\n<a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=btn-vps&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener noreferrer\">VPS\u3092\u4f7f\u3063\u3066\u307f\u308b<\/a><\/p>\n<h2 class=\"styled_h2\"><span id=\"Flask-5\">Flask\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/span><\/h2>\n<p>Flask\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u7c21\u5358\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u3053\u304b\u3089\u306f\u3001\u6700\u521d\u306b\u7c21\u5358\u306a\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u3001\u305d\u3053\u304b\u3089Flask\u306e\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"i-3\">\u30b5\u30f3\u30d7\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210<\/span><\/h3>\n<p>\u300cHello,Flask!\u300d\u3068\u3044\u3046\u6587\u5b57\u5217\u304c\u8868\u793a\u3055\u308c\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u65b0\u898f\u306bPython\u30d5\u30a1\u30a4\u30eb\u300csample.py\u300d\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<p>\u3010sample.py\u3011<\/p>\n<p class=\"well2\"><strong>from flask import Flask<br \/>\n<\/strong><br \/>\n<strong>app = Flask(__name__)<\/strong><br \/>\n<strong><br \/>\n@app.route(&#8216;\/&#8217;)<\/strong><br \/>\n<strong>def hello():<\/strong><br \/>\n<strong>\u00a0 \u00a0 return &#8220;Hello, Flask!&#8221;<\/strong><br \/>\n<strong><br \/>\nif __name__ == &#8216;__main__&#8217;:<\/strong><br \/>\n<strong>\u00a0 \u00a0 app.run(debug=True)<\/strong><\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong>python3 sample.py<\/strong><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4418\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf6.webp\" alt=\"\" width=\"602\" height=\"169\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf6.webp 602w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf6-300x84.webp 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" \/><\/p>\n<p>\u3053\u306e\u72b6\u614b\u3067\u3001\u8868\u793a\u3055\u308c\u305fURL\uff08http:\/\/127.0.0.1:5000\uff09\u306b\u30d6\u30e9\u30a6\u30b6\u3092\u4f7f\u3063\u3066\u30a2\u30af\u30bb\u30b9\u3057\u3001\u300cHello, Flask!\u300d\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u6210\u529f\u3067\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4419\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf7.webp\" alt=\"\" width=\"575\" height=\"321\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf7.webp 575w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf7-300x167.webp 300w\" sizes=\"(max-width: 575px) 100vw, 575px\" \/><\/p>\n<h3 class=\"styled_h3\"><span id=\"i-4\">\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0<\/span><\/h3>\n<p>\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306f\u3001URL\u3068Flask\u306e\u95a2\u6570\u3092\u30de\u30c3\u30d4\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001\u5148\u307b\u3069\u306esample.py\u304b\u3089\u3001\u4ee5\u4e0b\u306e\u592a\u5b57\u306e\u90e8\u5206\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<\/p>\n<p>\u3010sample.py\u3011<\/p>\n<p class=\"well2\"><strong>from flask import Flask<br \/>\n<\/strong><strong><br \/>\napp = Flask(__name__)<br \/>\n<\/strong><strong><br \/>\n@app.route(&#8216;\/&#8217;)<\/strong><br \/>\n<strong>def hello():<\/strong><br \/>\n<strong>\u00a0 \u00a0 return &#8220;Hello, Flask!&#8221;<\/strong><br \/>\n<strong><br \/>\n@app.route(&#8216;\/world&#8217;)<\/strong><br \/>\n<strong>def world():<\/strong><br \/>\n<strong>\u00a0 \u00a0 return &#8220;Hello, World!&#8221;<\/strong><br \/>\n<strong><br \/>\nif __name__ == &#8216;__main__&#8217;:<\/strong><br \/>\n<strong>\u00a0 \u00a0 app.run(debug=True)<\/strong><\/p>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067\u300chttp:\/\/127.0.0.1:5000\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068hello()\u306e\u95a2\u6570\u304c\u5b9f\u884c\u3055\u308c\u3001\u300cHello, Flask!\u300d\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u300chttp:\/\/127.0.0.1:5000\/world\u300d\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001world()\u306e\u95a2\u6570\u304c\u5b9f\u884c\u3055\u308c\u3001\u300cHello, World\uff01\u300d\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4420\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf8.webp\" alt=\"\" width=\"606\" height=\"337\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf8.webp 606w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf8-300x167.webp 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" \/>\u3053\u306e\u3088\u3046\u306b\u3001\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3092\u4f7f\u7528\u3059\u308b\u3068URL\u3092\u5909\u66f4\u3059\u308b\u3060\u3051\u3067\u5b9f\u884c\u3059\u308b\u95a2\u6570\u3082\u5909\u66f4\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3 class=\"styled_h3\"><span id=\"i-5\">\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8<\/span><\/h3>\n<p>\uff11\uff0e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068HTML\u30d5\u30a1\u30a4\u30eb\u306e\u4f5c\u6210<\/p>\n<p>\u300ctemplates\u300d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3001\u914d\u4e0b\u306b\u30d9\u30fc\u30b9\u3068\u306a\u308bhtml\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u304f\u3053\u3068\u3067\u3001\u7c21\u5358\u306b\u52d5\u7684\u306aWeb\u30da\u30fc\u30b8\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001template\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3001\u305d\u306e\u4e2d\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306ahtml\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u3010index.html\u3011<\/p>\n<p class=\"well2\"><strong>&lt;!DOCTYPE html&gt;<\/strong><br \/>\n<strong>&lt;html&gt;<\/strong><br \/>\n<strong>&lt;head&gt;<\/strong><br \/>\n<strong>&lt;title&gt;flask test&lt;\/title&gt;<\/strong><br \/>\n<strong>&lt;\/head&gt;<\/strong><br \/>\n<strong>&lt;body&gt;<\/strong><br \/>\n<strong>&lt;h1&gt;Test Message, {{ message }}&lt;\/h1&gt;<\/strong><br \/>\n<strong>&lt;\/body&gt;<\/strong><br \/>\n<strong>&lt;\/html&gt;<\/strong><\/p>\n<p>\uff12\uff0eFlask\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210<\/p>\n<p>\u6b21\u306b\u300csample_template.py\u300d\u3067\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<p>\u592a\u5b57\u306e\u90e8\u5206\u304c\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u5229\u7528\u3057\u305f\u51e6\u7406\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3010sample_template.py\u3011<\/p>\n<p class=\"well2\"><strong>from flask import Flask,render_template<br \/>\n<\/strong><strong><br \/>\napp = Flask(__name__)<br \/>\n<\/strong><strong><br \/>\n@app.route(&#8216;\/&#8217;)<\/strong><br \/>\n<strong>def index():<\/strong><br \/>\n<strong>\u00a0 \u00a0 \u00a0 return render_template(&#8216;index.html&#8217;,message=&#8221;Flask&#8221;)<\/strong><br \/>\n<strong><br \/>\nif __name__ == &#8216;__main__&#8217;:<\/strong><br \/>\n<strong>\u00a0 \u00a0 app.run(debug=True)<\/strong><\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u69cb\u6210\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30a4\u30e1\u30fc\u30b8\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p class=\"well2\"><strong>\u30fbsample_template.py(python\u30d5\u30a1\u30a4\u30eb)<\/strong><br \/>\n<strong>\u30fbtemplates(\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u306a\u308bHTML\u30d5\u30a1\u30a4\u30eb\u304c\u5165\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea)<\/strong><br \/>\n<strong>\u2514 index.html<\/strong><\/p>\n<p>\u3053\u306e\u72b6\u614b\u3067sample_template.py\u3092\u5b9f\u884c\u3057\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u78ba\u8a8d\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-4421\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf9.webp\" alt=\"\" width=\"569\" height=\"288\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf9.webp 569w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2024\/09\/\u753b\u50cf9-300x152.webp 300w\" sizes=\"(max-width: 569px) 100vw, 569px\" \/><\/p>\n<p>\u3053\u308c\u306f\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u300cindex.html\u300d\u5185\u306e{{ message }}\u306e\u90e8\u5206\u306b\u3001sample_template.py\u3067\u6307\u5b9a\u3055\u308c\u305f\u300cmessage=&#8221;Flask&#8221;\u300d\u306e\u90e8\u5206\u304c\u57cb\u3081\u8fbc\u307e\u308c\u3001\u8868\u793a\u3055\u308c\u305f\u5f62\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p style=\"text-align: center;\"><span style=\"color: #008080;\"><strong>\uff3c 2\u9031\u9593\u7121\u6599\u3067\u304a\u8a66\u3057\u3067\u304d\u307e\u3059\uff01 \uff0f<\/strong><\/span><br \/>\n<a class=\"btn_10\" href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=btn-vps&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener noreferrer\">VPS\u3092\u4f7f\u3063\u3066\u307f\u308b<\/a><\/p>\n<h2 class=\"styled_h2\"><span id=\"i-6\">\u307e\u3068\u3081<\/span><\/h2>\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001Flask\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u304a\u3088\u3073\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\"><strong>Flask\u306e\u6a5f\u80fd\u300c\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u300d\u300c\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u300d\u306a\u3069\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u52b9\u7387\u3088\u304fWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/strong><\/span><\/p>\n<p>Python\u3067Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u969b\u306f\u3001\u672c\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u305c\u3072\u5229\u7528\u3092\u691c\u8a0e\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">\u304a\u8a66\u3057\u3067\u691c\u8a3c\u3059\u308b\u969b\u306f\u3001\u7c21\u5358\u306b\u74b0\u5883\u3092\u6e96\u5099\u3067\u304d\u308b<strong>\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/strong>\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/span><\/p>\n<h2 class=\"styled_h2\"><span id=\"UbuntuVPS\">Ubuntu\u3092VPS\u3067\u5229\u7528\u3059\u308b\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/span><\/h2>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=miraiserver\" target=\"_blank\" rel=\"noopener\"><strong>\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc<\/strong><\/a>\u306f\u3001\u30a2\u30b7\u30b9\u30c8\u30a2\u30c3\u30d7\u682a\u5f0f\u4f1a\u793e\u304c\u63d0\u4f9b\u3057\u3066\u3044\u308b\u3001<strong>Unix\u7cfb\u30b5\u30fc\u30d0\u30fc<\/strong>\u306b\u7279\u5316\u3057\u305f\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u3067\u3059\u3002<\/p>\n<p><span class=\"q_underline q_underline1\" style=\"border-bottom-color: #fff799;\"><a href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\"><strong>\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u306eVPS<\/strong><\/a>\u3067\u306f\u3001<strong>\u9ad8\u901f\u51e6\u7406\u304c\u53ef\u80fd\u306aSSD<\/strong>\u3092<strong>\u5168\u30d7\u30e9\u30f3\u306b\u642d\u8f09<\/strong>\u3057\u3066\u3044\u307e\u3059\u3002<\/span><\/p>\n<p><span class=\"q_underline q_underline2\" style=\"border-bottom-color: #99f9ff;\">OS\u306f\u3001<b>Ubuntu<\/b>\u3084<b>Debian<\/b>\u3001<b>AlmaLinux<\/b>\u306a\u3069\u306e\u8c4a\u5bcc\u306a\u30e9\u30a4\u30f3\u30a2\u30c3\u30d7\u304b\u3089\u9078\u629e\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><\/p>\n<p><a href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\"><strong>2\u9031\u9593\u7121\u6599\u30c8\u30e9\u30a4\u30a2\u30eb<\/strong><\/a>\u3092\u5b9f\u65bd\u3057\u3066\u304a\u308a\u307e\u3059\u306e\u3067\u3001\u307e\u305a\u306f\u304a\u6c17\u8efd\u306b\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n<p style=\"text-align: center;\"><a href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\">\u25bc\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u25bc<\/a><a href=\"https:\/\/www.miraiserver.ne.jp\/vps?utm_source=article-other&amp;utm_medium=referral&amp;utm_campaign=mirai-vps\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter wp-image-111 size-full\" src=\"http:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a.png\" alt=\"Unix\u7cfbOS\u5c02\u9580\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u300c\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc\u300d\" width=\"336\" height=\"280\" srcset=\"https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a.png 336w, https:\/\/blog.miraiserver.ne.jp\/wp-content\/uploads\/2022\/08\/02_336x280_a-300x250.png 300w\" sizes=\"(max-width: 336px) 100vw, 336px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"Flask\uff08\u30d5\u30e9\u30b9\u30af\uff09\u3068\u306f\u3001Python\u3067\u66f8\u304b\u308c\u305fWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002 \u672c\u8a18\u4e8b\u3067\u306fWeb\u30a2\u30d7\u30ea\u958b\u767a\u8005\u306b\u5411\u3051\u3066\u3001Flask\u306e\u6a5f\u80fd\u3084\u7279\u5fb4\u306e\u307b\u304b\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u304a\u3088\u3073\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002 \uff3c 2\u9031\u9593\u7121\u6599\u3067\u304a\u8a66\u3057\u3067\u304d\u307e\u3059\uff01 \uff0f Unix\/Linux\u7cfbVPS\u3092\u3053\u306e\u4fa1\u683c\u3067\uff01 \u30fb\u5168\u30d7\u30e9\u30f3SSD\u642d\u8f09\u3067\u30b3\u30b9\u30c8\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u25ce \u30fb\u8c4a\u5bcc\u306aOS\u30e9\u30a4\u30f3\u30a2\u30c3\u30d7 \u30fb\u5145\u5b9f\u306e\u7121\u6599\u30b5\u30dd\u30fc\u30c8 VPS\u3092\u4f7f\u3063\u3066\u307f\u308b \u76ee\u6b211 Flask\u3068\u306f1.1 Flask\u306e\u6982\u89811.2 Flask\u306e\u6a5f\u80fd2 Flask\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u98062.1 \u524d\u63d0\u6761\u4ef62.2 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u98063 Flask\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b93.1 \u30b5\u30f3\u30d7\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u62103.2 \u30eb\u30fc\u30c6\u30a3\u30f3\u30b03.3 \u30c6\u30f3\u30d7\u30ec\u30fc\u30c84 \u307e\u3068\u30815 Ubuntu\u3092VPS\u3067\u5229\u7528\u3059\u308b\u306a\u3089\u30df\u30e9\u30a4\u30b5\u30fc\u30d0\u30fc Flask\u3068\u306f Flask\u306e\u6982\u8981 Flask\u306f\u3001Python\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u66f8\u304b\u308c\u305f\u8efd\u91cf\u306aWeb\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u30012010\u5e744\u6708\u306bArmin Ronacher\u306b\u3088\u3063\u3066\u958b\u767a\u3055\u308c\u307e\u3057\u305f\u3002 \u300c\u30de\u30a4\u30af\u30ed\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u300d\u3068\u3057\u3066\u5206\u985e\u3055\u308c\u308bFlask\u306f\u3001\u6700\u5c0f\u9650\u306e\u30b3\u30a2\u6a5f\u80fd\u3092\u6301\u3061\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u3084\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u5fc5\u8981\u306a\u6a5f\u80fd\u306e\u307f\u3092\u8ffd\u52a0\u3067\u304d\u308b\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u308c\u306b\u3088\u308a\u3001\u958b\u767a\u8005\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u898f\u6a21\u3084\u8981\u4ef6\u306b\u5fdc\u3058\u3066\u5fc5\u8981\u306a\u6a5f\u80fd\u3060\u3051\u3092\u53d6\u308a\u5165\u308c\u3001\u52b9\u7387\u7684\u306a\u958b\u767a\u3092\u884c\u3048\u307e\u3059\u3002 Flask\u306f\u3001\u4ee5\u4e0b\u306e\u7279\u5fb4\u304c\u3042\u308a\u307e\u3059\u3002 \u30fb\u30b7\u30f3\u30d7\u30eb\u3067\u8efd\u91cf \u30fb\u67d4\u8edf\u6027\u3001\u62e1\u5f35\u6027\u304c\u9ad8\u3044 \u30fb\u5b66\u7fd2\u3057\u3084\u3059\u3044 \u307e\u305f\u3001Flask\u306fPython\u306e\u6a19\u6e96\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u4e92\u63db\u6027\u304c\u9ad8\u304f\u3001\u521d\u5fc3\u8005\u304b\u3089\u7d4c\u9a13\u8005\u307e\u3067\u958b\u767a\u8005\u306b\u4eba\u6c17\u306eWeb\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3067\u3059\u3002 Flask\u306e\u6a5f\u80fd \u30fb\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0 \u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3068\u306f\u3001URL\u30d1\u30b9\u3068\u5bfe\u5fdc\u3059\u308b\u51e6\u7406\u3092\u7d50\u3073\u3064\u3051\u308b\u3053\u3068\u3067\u3059\u3002 Flask\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u6a5f\u80fd\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30ea\u30af\u30a8\u30b9\u30c8URL\u306b\u5fdc\u3058\u305f\u51e6\u7406\u3092\u884c\u3044\u307e\u3059\u3002 @app.route(&#8216;\/&#8217;)\u306e\u3088\u3046\u306a\u30b7\u30f3\u30d7\u30eb\u306a\u8a18\u8ff0\u3067URL\u3068\u95a2\u6570\u3092\u95a2\u9023\u4ed8\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u8907\u96d1\u306aWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u958b\u767a\u3082\u53ef\u80fd\u3067\u3059\u3002 \u30fb\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3 \u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3\u3068\u306f\u3001HTML\u3068\u30d7\u30ed\u30b0\u30e9\u30e0\u30b3\u30fc\u30c9\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u52d5\u7684\u306aWeb\u30da\u30fc\u30b8\u3092\u751f\u6210\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3059\u3002 Flask\u306fJinja2\u3068\u3044\u3046\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30a8\u30f3\u30b8\u30f3\u3092\u63a1\u7528\u3057\u3066\u3044\u307e\u3059\u3002 \u3053\u308c\u306fHTML\u3068Python\u30b3\u30fc\u30c9\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u52d5\u7684\u306aWeb\u30da\u30fc\u30b8\u306e\u751f\u6210\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002 Jinja2\u3092\u4f7f\u3048\u3070\u3001\u5909\u6570\u3084\u5236\u5fa1\u69cb\u6587\u3092\u7c21\u5358\u306b\u57cb\u3081\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u30c7\u30fc\u30bf\u306b\u57fa\u3065\u3044\u305f\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306a\u30b3\u30f3\u30c6\u30f3\u30c4\u66f4\u65b0\u304c\u53ef\u80fd\u3067\u3059\u3002 \u30fb\u30ea\u30af\u30a8\u30b9\u30c8\u51e6\u7406 \u30ea\u30af\u30a8\u30b9\u30c8\u51e6\u7406\u3068\u306f\u3001HTTP\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u53d6\u308a\u3001\u305d\u308c\u306b\u5fdc\u3058\u305f\u51e6\u7406\u3092\u884c\u3046\u4ed5\u7d44\u307f\u3067\u3059\u3002 Flask\u306fHTTP\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u51e6\u7406\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3001GET\u3084POST\u306a\u3069\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u5bfe\u5fdc\u3057\u305f\u30eb\u30fc\u30c8\u8a2d\u5b9a\u304c\u53ef\u80fd\u3067\u3059\u3002 \u307e\u305f\u3001request\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u901a\u3058\u3066\u3001\u30d5\u30a9\u30fc\u30e0\u30c7\u30fc\u30bf\u3084JSON\u306a\u3069\u306e\u5165\u529b\u30c7\u30fc\u30bf\u304c\u6271\u3048\u307e\u3059\u3002 \u3053\u308c\u306b\u3088\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306e\u5165\u529b\u306b\u5fdc\u3058\u305f\u67d4\u8edf\u306a\u51e6\u7406\u304c\u53ef\u80fd\u3067\u3059\u3002 \u30fb\u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406 \u30bb\u30c3\u30b7\u30e7\u30f3\u7ba1\u7406\u306f\u30e6\u30fc\u30b6\u30fc\u306e\u30ed\u30b0\u30a4\u30f3\u60c5\u5831\u3084\u72b6\u614b\u3092\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u4fdd\u6301\u3057\u3001Cookie\u306b\u6697\u53f7\u5316\u3057\u3066\u4fdd\u5b58\u3057\u307e\u3059\u3002 \u3053\u308c\u306b\u3088\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u518d\u8a2a\u3057\u3066\u3082\u72b6\u614b\u3092\u7dad\u6301\u3067\u304d\u3001\u30bb\u30ad\u30e5\u30a2\u3067\u30d1\u30fc\u30bd\u30ca\u30e9\u30a4\u30ba\u3055\u308c\u305f\u30b5\u30fc\u30d3\u30b9\u63d0\u4f9b\u304c\u53ef\u80fd\u3067\u3059\u3002 \u30fb\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u306e\u63d0\u4f9b Flask\u306f\/static\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u5229\u7528\u3057\u3066CSS\u3084JavaScript\u3001\u753b\u50cf\u306a\u3069\u306e\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002 \u3053\u306e\u6a5f\u80fd\u306b\u3088\u308a\u3001\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u6700\u9069\u5316\u3055\u308c\u3001Web\u30da\u30fc\u30b8\u306e\u8868\u793a\u901f\u5ea6\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002 [&hellip;]","protected":false},"author":1,"featured_media":4413,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[188,233,292],"tags":[175,210,263,269,337,345],"_links":{"self":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/3085"}],"collection":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/comments?post=3085"}],"version-history":[{"count":29,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/3085\/revisions"}],"predecessor-version":[{"id":4422,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/posts\/3085\/revisions\/4422"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/media\/4413"}],"wp:attachment":[{"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/media?parent=3085"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/categories?post=3085"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.miraiserver.ne.jp\/column\/wp-json\/wp\/v2\/tags?post=3085"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}