{"id":26407,"date":"2017-07-04T22:51:22","date_gmt":"2017-07-04T13:51:22","guid":{"rendered":"http:\/\/www.sejuku.net\/blog\/?p=26407"},"modified":"2024-05-06T11:43:42","modified_gmt":"2024-05-06T02:43:42","slug":"%e3%80%90django%e5%85%a5%e9%96%80%e3%80%91template%e3%81%ae%e4%bd%9c%e3%82%8a%e6%96%b9%e3%81%a8%e4%bd%bf%e3%81%84%e6%96%b9","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/26407","title":{"rendered":"\u3010Django\u5165\u9580\u3011template\u3068HTML\u3092\u4f7f\u3063\u3066Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3088\u3046"},"content":{"rendered":"<p>\u4eca\u56de\u306f\u3001Python\u306eDjango\u3067\u4f7f\u308f\u308c\u308btemplate\u306e\u66f8\u304d\u65b9\u3001\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002Django\u3067\u4f7f\u308f\u308c\u308bMTV\u30e2\u30c7\u30eb\u3067\u3082\u91cd\u8981\u306a\u90e8\u5206\u3092\u62c5\u3046template\u306b\u3064\u3044\u3066\u3001\u5b66\u7fd2\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001<\/p>\n<div class=\"box01\">\n<ul>\n<li><b>MTV\u30e2\u30c7\u30eb\u3068\u306f\u4f55\u304b<\/b><\/li>\n<li><b>template\u3068\u306f\u4f55\u304b<\/b><\/li>\n<li><b>template\u306e\u4f7f\u3044\u65b9<\/b><\/li>\n<li><b>template\u306e\u5fdc\u7528<\/b><\/li>\n<\/ul>\n<\/div>\n<p>\u3092\u901a\u3057\u3066\u3001\u3088\u308a\u5b9f\u8df5\u7684\u306a\u4f7f\u3044\u65b9\u3092\u5b66\u3093\u3067\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>MTV\u30e2\u30c7\u30eb\u3068\u306f<\/h2>\n<p>\u4eca\u56de\u5b66\u3076template\u306e\u524d\u306b\u3001\u307e\u305a\u306fMTV\u30e2\u30c7\u30eb\u3068\u547c\u3070\u308c\u308b\u8a2d\u8a08\u601d\u60f3\u306b\u3064\u3044\u3066\u5b66\u3093\u3067\u3044\u304d\u307e\u3057\u3087\u3046\u3002Django\u306fMTV\u30e2\u30c7\u30eb\u3092\u63a1\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>MTV\u3068\u306f\u3001<br \/>\n\t<div class=\"box01\"><\/p>\n<ul>\n<li><b>Model\uff08\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\uff09<\/b><\/li>\n<li><b>Template\uff08\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u306b\u3088\u3063\u3066\u5b9a\u7fa9\u3055\u308c\u305f\u305d\u308c\u305e\u308c\u306e\u30da\u30fc\u30b8\u306e\u30c7\u30b6\u30a4\u30f3\uff09<\/b><\/li>\n<li><b>View\uff08\u3069\u306e\u30da\u30fc\u30b8\u3092\u8868\u793a\u3055\u305b\u308b\u304b\u3092\u6c7a\u5b9a\u3059\u308b\u51e6\u7406\uff09<\/b><\/li>\n<\/ul>\n<\/div>\n<p>\u306e\u982d\u6587\u5b57\u3092\u53d6\u3063\u305f\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u8a73\u3057\u304f\u306f\u4ee5\u4e0b\u306e\u30da\u30fc\u30b8\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u3057\u305f\uff01\u662f\u975e\u3054\u89a7\u304f\u3060\u3055\u3044\uff01<br \/>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/27387\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/10\/image-36-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010Django\u5165\u9580\u3011Django\u30a2\u30d7\u30ea\u306e\u8a2d\u8a08\u54f2\u5b66\uff01MTV\u30e2\u30c7\u30eb\u3092models\u3092\u901a\u3057\u3066\u5b66\u307c\u3046\uff01<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            <\/p>\n<p>MVT\u3092\u56f3\u306b\u3057\u3066\u307f\u308b\u3068\u3053\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2018\/03\/django_mtv-1140x759.png\" width=\"1140\" height=\"759\" \/><\/p>\n<p>\u3088\u304f\u4f3c\u305f\u8a2d\u8a08\u306bMVC\uff08Model\u3001View\u3001Controller\uff09\u3068\u3044\u3046\u30e2\u30c7\u30eb\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>MVC\u30e2\u30c7\u30eb\u306e\u5834\u5408\u306f\u3001<br \/>\n\t<div class=\"box01\"><\/p>\n<li><b>Model\uff08\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\uff09<\/b><\/li>\n<li><b>View\uff08\u30da\u30fc\u30b8\u3092\u3069\u306e\u3088\u3046\u306b\u898b\u305b\u308b\u306e\u304b\u3092\u6c7a\u5b9a\u3059\u308b\u51e6\u7406\uff09<\/b><\/li>\n<li><b>Controller\uff08\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u306e\u5165\u529b\u3092Model\u306b\u4f1d\u3048\u308b\u51e6\u7406\uff09<\/b><\/li>\n<\/div>\n<p>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>MVC\u30e2\u30c7\u30eb\u3092\u63a1\u7528\u3057\u3066\u3044\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u306f\u3001Ruby on Rails\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<h3>template\u3068\u306f<\/h3>\n<p>\u3053\u308c\u304b\u3089\u5b66\u3093\u3067\u3044\u304ftemplate\u306f\u5177\u4f53\u7684\u306b\u3069\u306e\u3088\u3046\u306a\u5f79\u5272\u3092\u3059\u308b\u306e\u304b\u3001\u898b\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>template\u3067\u306f\u4e3b\u306bHTML\u3092\u4f7f\u3063\u3066\u8868\u793a\u3059\u308b\u30da\u30fc\u30b8\u3092\u4f5c\u3063\u3066\u3044\u304d\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306fHTML\u306b\u30d6\u30ed\u30c3\u30af\u3068\u547c\u3070\u308c\u308b\u5909\u6570\u3084\u547d\u4ee4\u3092\u57cb\u3081\u8fbc\u3093\u3067\u3001<b>\u3088\u308a\u81ea\u7531\u5ea6\u306e\u9ad8\u3044Web\u30da\u30fc\u30b8\u3092\u4f5c\u308b<\/b>\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>\u901a\u5e38\u306eHTML\u3067\u306f\u4f7f\u3048\u306a\u3044\u3088\u3046\u306aif\u6587\u3084for\u6587\u306a\u3069\u3082\u4f7f\u3046\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<h2>template\u3092\u4f5c\u308b\u6e96\u5099<\/h2>\n<p>\u305d\u308c\u3067\u306f\u65e9\u901f\u3001template\u3092\u4f7f\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>Django\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/h3>\n<p>\u307e\u305a\u306fDjango\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>Django\u306fPython\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u3057\u3066\u63d0\u4f9b\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/28235\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/image-51-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010Django\u5165\u9580\u3011\u3042\u306a\u305f\u306e\u30d1\u30bd\u30b3\u30f3\u306bDjango\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff01<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h3>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3068\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210<\/h3>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u51fa\u6765\u305f\u3089\u3001\u6b21\u306f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3068\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u8a73\u3057\u304f\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u89e3\u8aac\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3054\u89a7\u4e0b\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/27387\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/10\/image-36-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010Django\u5165\u9580\u3011Django\u30a2\u30d7\u30ea\u306e\u8a2d\u8a08\u54f2\u5b66\uff01MTV\u30e2\u30c7\u30eb\u3092models\u3092\u901a\u3057\u3066\u5b66\u307c\u3046\uff01<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<h3>settings.py\u306e\u8a2d\u5b9a\u3092\u3057\u3088\u3046<\/h3>\n<p>template\u3092\u4f7f\u3046\u5834\u5408\u306f\u3001\u3082\u3046\u4e00\u3064\u6e96\u5099\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>Django\u306btemplate\u30d5\u30a1\u30a4\u30eb\u3092\u7f6e\u304f\u5834\u6240\uff08\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\uff09\u3092\u77e5\u3089\u305b\u306a\u3051\u308c\u3070\u306a\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001mySite\/settings.py\u3092\u7de8\u96c6\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:python decode:true \">TEMPLATES = [\r\n    {\r\n        'BACKEND': 'django.template.backends.django.DjangoTemplates',\r\n        'DIRS': [\r\n          os.path.join(BASE_DIR, 'templates'),\r\n        ],\r\n        'APP_DIRS': True,\r\n        'OPTIONS': {\r\n            'context_processors': [\r\n                'django.template.context_processors.debug',\r\n                'django.template.context_processors.request',\r\n                'django.contrib.auth.context_processors.auth',\r\n                'django.contrib.messages.context_processors.messages',\r\n            ],\r\n        },\r\n    },\r\n]<\/pre>\n<p>TEMPLATES\u306e&#8217;DIRS&#8217;\u306b\u3001\u300cos.path.join(BASE_DIR, &#8216;templates&#8217;),\u300d\u3068\u3044\u3046\u547d\u4ee4\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f\u3001templates\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306btemplate\u30d5\u30a1\u30a4\u30eb\u3092\u5165\u308c\u3066\u3044\u304f\u3053\u3068\u3092\u5ba3\u8a00\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>BASE_DIR\u306fDjango\u306b\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u5909\u6570\u3067\u3059\u3002os.path.join\u95a2\u6570\u306f\u3001Python\u3067\u7c21\u5358\u306b\u30d1\u30b9\u3092\u4f5c\u3063\u3066\u304f\u308c\u308b\u95a2\u6570\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u8981\u3059\u308b\u306b\u3001<b>\u2019DIRS\u2019\u306b\u306ftemplates\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d1\u30b9\u304c\u5165\u3063\u3066\u3044\u308b<\/b>\u3068\u8003\u3048\u3066\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u4fbf\u5b9c\u4e0a\u3001templates\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u540d\u306b\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u4f5c\u308bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u3088\u3063\u3066\u5909\u3048\u308b\u3053\u3068\u3082\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>\u5909\u3048\u305f\u5834\u5408\u306f\u3001settings.py\u3082\u540c\u3058\u3088\u3046\u306b\u5909\u66f4\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>template\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3088\u3046<\/h3>\n<p>\u5148\u7a0b\u306f\u3069\u3053\u306b\u3001\u3069\u306e\u540d\u524d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u7f6e\u304f\u304b\u3092\u6307\u5b9a\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u809d\u5fc3\u306etemplates\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306f\u3001manage.py\u3068\u540c\u3058\u968e\u5c64\u306b\u4f5c\u308a\u307e\u3059\u3002<\/p>\n<p>\u73fe\u5728\u306f\u3001<\/p>\n<pre class=\"lang:python decode:true \">mySite\r\n\u2014manage.py\r\n\u2014myapp\r\n\u2014mySite\r\n\u2014templates<\/pre>\n<p>\u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u305d\u306e\u4e2d\u306btemplate\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u3044\u304d\u307e\u3059\u3002template\u30d5\u30a1\u30a4\u30eb\u3068\u805e\u304f\u3068\u5c11\u3057\u69cb\u3048\u3066\u3057\u307e\u3046\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u3057\u304b\u3057HTML\u30d5\u30a1\u30a4\u30eb\u306b\u3068\u3066\u3082\u826f\u304f\u4f3c\u305f\u66f8\u304d\u65b9\u3092\u3059\u308b\u306e\u3067\u305d\u3053\u307e\u3067\u5fc3\u914d\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>HTML\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/6026\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2021\/02\/howto-02-1-150x85.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">HTML\u3068\u306f\uff1f\u3067\u304d\u308b\u3053\u3068\u3084\u30bf\u30b0\u306e\u7a2e\u985e\u3001\u52c9\u5f37\u65b9\u6cd5\u3082\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2025\u5e7412\u670826\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<p>\u3053\u3061\u3089\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:python decode:true \">&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;template test&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;p&gt;This is template test.&lt;\/p&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u3068\u3066\u3082\u30b7\u30f3\u30d7\u30eb\u306a\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u306b\u306a\u308a\u307e\u3059\u304c\u3001\u3053\u308c\u3067\u3082\u7acb\u6d3e\u306aHTML\u30d5\u30a1\u30a4\u30eb\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u8868\u793a\u3092\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>template\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u3053\u306eHTML\u30d5\u30a1\u30a4\u30eb\u3092\u3082\u3068\u306b\u3001\u69d8\u3005\u306a\u6a5f\u80fd\u3092\u4ed8\u3051\u8db3\u3057\u3066\u3044\u304f\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>template\u306a\u3089\u3067\u306f\u306e\u6a5f\u80fd\u306f\u3001\u3082\u3046\u5c11\u3057\u5f8c\u306e\u7ae0\u3067\u89e3\u8aac\u3057\u307e\u3059\uff01<\/p>\n<p>\u3072\u3068\u307e\u305a\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092&#8221;index.html&#8221;\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u540d\u3067\u3001templates\u306e\u4e0b\u306b\u914d\u7f6e\u3057\u307e\u3059\u3002<\/p>\n<h3>views.py\u3068urls.py\u3092\u8a2d\u5b9a\u3057\u3088\u3046<\/h3>\n<p>template\u30d5\u30a1\u30a4\u30eb\u3092\u8aad\u307f\u8fbc\u3080\u6e96\u5099\u306f\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u308c\u304b\u3089\u306f\u3001view\u3068URL\u3092\u7d10\u3064\u3051\u3066\u3044\u304d\u307e\u3059\u3002view\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u3082\u4f75\u305b\u3066\u77e5\u3063\u3066\u304a\u304f\u3068\u3001\u7406\u89e3\u304c\u9032\u3080\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/25952\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/10\/image-28-150x86.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010Django\u5165\u9580\u3011views\u3092\u4f7f\u3063\u3066\u30da\u30fc\u30b8\u3092\u8868\u793a\u3055\u305b\u3088\u3046<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2024\u5e745\u67086\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<p>\u307e\u305a\u306f\u3001myapp\/views.py\u3092\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true \">from django.shortcuts import render\r\n \r\ndef index_template(request):\r\n    return render(request, 'index.html')<\/pre>\n<p>\u305d\u3057\u3066\u3001myapp\/urls.py\u3092\u3053\u306e\u3088\u3046\u306b\u7de8\u96c6\u3057\u307e\u3059\u3002<\/p>\n<p>myapp\/urls.py\u306f\u3001\u6700\u521d\u3042\u308a\u307e\u305b\u3093\u304c\u3001\u81ea\u5206\u3067\u4f5c\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true \">from django.urls import path\r\nfrom . import views\r\n\r\nurlpatterns = [\r\n    path('templates\/', views.index_template, name='index_template'),\r\n]<\/pre>\n<p>\u6b21\u306b\u3001mySite\/urls.py\u3092\u3053\u306e\u3088\u3046\u306b\u7de8\u96c6\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:python decode:true \">from django.contrib import admin\r\nfrom django.urls import path, include\r\n \r\nurlpatterns = [\r\n    path('admin\/', admin.site.urls),\r\n    path('myapp\/', include('myapp.urls')),\r\n]<\/pre>\n<p>\u3053\u308c\u3067\u3001\u3059\u3079\u3066\u306e\u6e96\u5099\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>mySite\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true \">python manage.py runserver<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p>\u30d6\u30e9\u30a6\u30b6\u3067 http:\/\/localhost:8000\/myapp\/templates\/ \u306b\u79fb\u52d5\u3057\u3066\u300cThis is template test.\u300d\u3068\u8868\u793a\u3055\u308c\u308c\u3070template\u3092\u4f7f\u3046\u6e96\u5099\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>\uff08\u203b\u30dd\u30fc\u30c8\uff08\u3053\u3053\u3067\u306f8000\uff09\u306f\u4e0a\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u8868\u793a\u3055\u308c\u305f\u3082\u306e\u3092\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002\uff09<\/p>\n<p><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2022\/11\/c45c927de5e537e82f1097ddc6749651.png\" width=\"776\" height=\"252\" \/><\/p>\n<h2>template\u306e\u4f5c\u308a\u65b9<\/h2>\n<p>template\u306f\u305f\u3060\u306eHTML\u3092\u8868\u793a\u3059\u308b\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u69d8\u3005\u306a\u6a5f\u80fd\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>template\u3067\u5909\u6570\u3092\u4f7f\u304a\u3046<\/h3>\n<p>template\u3067\u5909\u6570\u3092\u4f7f\u3046\u306b\u306f\u3001template\u30d5\u30a1\u30a4\u30eb\u306b\u3082\u5909\u6570\u3092\u66f8\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true \">&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;template test&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;p&gt;This is {{app}} test.&lt;\/p&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u300c{{app}}\u300d\u304c\u5909\u6570\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u5909\u6570\u306b\u5024\u3092\u8ffd\u52a0\u3059\u308b\u4f5c\u696d\u3092\u3001views.py\u3067\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true \">from django.shortcuts import render\r\nfrom django.http.response import HttpResponse\r\n \r\ndef index_template(request):\r\n    myapp_data = {\r\n    'app': 'Django'\r\n    }\r\n    return render(request, 'index.html', myapp_data)<\/pre>\n<p>myapp_data\u3068\u3044\u3046\u8f9e\u66f8\u578b\u306b\u3001app\u3068\u3044\u3046key\u3067Django\u3068\u3044\u3046\u6587\u5b57\u5217\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3092render\u95a2\u6570\u306b\u6e21\u3059\u3053\u3068\u3067\u3001\u5909\u6570\u304c\u53cd\u6620\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2022\/11\/919bb358530918ef5d78bba8cc85cdca.png\" width=\"816\" height=\"320\" \/><\/p>\n<h3>template\u3067\u30b3\u30e1\u30f3\u30c8\u3092\u66f8\u3053\u3046<\/h3>\n<p>template\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u3067\u306f\u30b3\u30e1\u30f3\u30c8\u3092\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true \">&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;template test&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;p&gt;This is {{app}} test.&lt;\/p&gt;\r\n{# This is practice. #}\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u300c{# #}\u300d\u3067\u56f2\u308f\u308c\u305f\u4e2d\u306f\u30b3\u30e1\u30f3\u30c8\u3068\u898b\u306a\u3055\u308c\u3066\u4f55\u3092\u66f8\u3044\u3066\u3082\u30d7\u30ed\u30b0\u30e9\u30e0\u306b\u306f\u5f71\u97ff\u3057\u307e\u305b\u3093\u3002<\/p>\n<p>\u666e\u901a\u306eHTML\u30d5\u30a1\u30a4\u30eb\u3088\u308a\u3082\u8907\u96d1\u306b\u306a\u308a\u3084\u3059\u3044template\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u4f7f\u3063\u3066\u3044\u304f\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/p>\n<h3>template\u306b\u914d\u5217\u3092\u6e21\u305d\u3046<\/h3>\n<p>template\u30d5\u30a1\u30a4\u30eb\u306f\u914d\u5217\u3092\u6271\u3046\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true \">&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;template test&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;p&gt;This is {{app}} test.&lt;\/p&gt;\r\n&lt;p&gt;\r\n{% for i in num %}\r\n{{ i }}&lt;br&gt;\r\n{% endfor %}\r\n&lt;\/p&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>{% for \u5909\u6570 in \u30ea\u30b9\u30c8 %}\u304b\u3089{% endfor %}\u307e\u3067\u304cfor\u6587\u3067\u3059\u3002<\/p>\n<p>\u66f8\u304d\u65b9\u304c\u3068\u3066\u3082Python\u306b\u4f3c\u3066\u3044\u307e\u3059\u306d\u3002<\/p>\n<p>views.py\u306f\u3053\u306e\u3088\u3046\u306b\u7de8\u96c6\u3092\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true \">from django.shortcuts import render\r\nfrom django.http.response import HttpResponse\r\n \r\ndef index_template(request):\r\n    myapp_data = {\r\n    'app': 'Django',\r\n    'num': range(10),\r\n    }\r\n    return render(request, 'index.html', myapp_data)<\/pre>\n<p>\u666e\u901a\u306e\u5909\u6570\u3068\u540c\u3058\u3088\u3046\u306b\u6271\u3048\u308b\u3053\u3068\u304c\u3053\u308c\u3067\u5206\u304b\u3063\u3066\u3044\u305f\u3060\u3051\u305f\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2022\/11\/933818dbe23c1911781d2f31e44af85e.png\" width=\"784\" height=\"698\" \/><\/p>\n<h2>template\u3092\u4f7f\u3044\u3053\u306a\u305d\u3046<\/h2>\n<p>template\u306b\u306f\u307e\u3060\u307e\u3060\u305f\u304f\u3055\u3093\u306e\u6a5f\u80fd\u304c\u5099\u308f\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u3053\u304b\u3089\u306f\u3061\u3087\u3063\u3068\u9032\u3093\u3060\u5185\u5bb9\u306b\u6311\u6226\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>template\u3067if\u6587\u3092\u4f7f\u304a\u3046<\/h3>\n<p>template\u3067if\u6587\u3092\u4f7f\u3046\u3053\u3068\u304c\u3067\u304d\u308c\u3070\u3001\u8868\u793a\u3059\u308b\u5185\u5bb9\u3092\u6761\u4ef6\u306b\u3088\u3063\u3066\u5909\u3048\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3061\u3089\u306e\u30b3\u30fc\u30c9\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:python decode:true \">&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;template test&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;p&gt;This is {{app}} test.&lt;\/p&gt;\r\n{% if is_weekday %}\r\n&lt;p&gt;Today is weekday.&lt;\/p&gt;\r\n{% else %}\r\n&lt;p&gt;Today is holiday.&lt;\/p&gt;\r\n{% endif %}\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u300c{% if %}\u300d\u3068\u300c{% else %}\u300d\u3001\u300c{% endif %}\u300d\u304c\u4f7f\u308f\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true \">from django.shortcuts import render\r\nfrom django.http.response import HttpResponse\r\n \r\ndef index_template(request):\r\n    myapp_data = {\r\n    'app': 'Django',\r\n    'is_weekday': True,\r\n    }\r\n    return render(request, 'index.html', myapp_data)<\/pre>\n<p>\u3053\u308c\u3067\u3001\u72b6\u6cc1\u306b\u3088\u3063\u3066\u8868\u793a\u5185\u5bb9\u3092\u5909\u3048\u308b\u3053\u3068\u304c\u51fa\u6765\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2022\/11\/675ad680c0c2fcac89baeeb30bd285d1.png\" width=\"740\" height=\"328\" \/><\/p>\n<h3>template\u306e\u5909\u6570\u3067filter\u3092\u4f7f\u304a\u3046<\/h3>\n<p>filter\u306f\u69d8\u3005\u306a\u6a5f\u80fd\u304c\u3059\u3067\u306b\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306etemplate\u30d5\u30a1\u30a4\u30eb\u3092\u898b\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"lang:python decode:true \">&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;template test&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n{{app|length}}\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u300c{{\u5909\u6570|filter}}\u300d\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u90e8\u5206\u304cfilter\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u4f8b\u3067\u306fapp\u3068\u3044\u3046\u5909\u6570\u306b\u5bfe\u3057\u3066\u3059\u3067\u306b\u7528\u610f\u3055\u308c\u3066\u3044\u308blength\u3068\u3044\u3046\u9577\u3055\u3092\u8abf\u3079\u308bfilter\u3092\u304b\u3051\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2022\/11\/31571a5400b485a02976eeca2d4d8a5e.png\" width=\"762\" height=\"356\" \/><\/p>\n<p>\u5148\u7a0b\u3082\u8aac\u660e\u3057\u305f\u3088\u3046\u306b\u3053\u306efilter\u306b\u306f\u305f\u304f\u3055\u3093\u306e\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u8a73\u3057\u304f\u306f<a href=\"http:\/\/docs.djangoproject.jp\/en\/latest\/topics\/templates.html\" target=\"_blank\" rel=\"noopener noreferrer\">\u3053\u3061\u3089<\/a>\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>template\u3067\u7d99\u627f\u3057\u3088\u3046<\/h3>\n<p>\u30da\u30fc\u30b8\u304c\u8907\u6570\u3042\u308b\u5834\u5408\u3001\u30d8\u30c3\u30c0\u30fc\u3084\u30d5\u30c3\u30bf\u30fc\u306a\u3069\u3001\u5171\u901a\u3057\u3066\u3044\u308b\u90e8\u5206\u304c\u3044\u304f\u3064\u304b\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u5834\u5408\u3001template\u30d5\u30a1\u30a4\u30eb\u3092\u89aa\u3068\u5b50\u306b\u5206\u3051\u3066\u3001\u7d99\u627f\u3092\u3059\u308b\u3068\u3088\u308a\u7c21\u6f54\u306b\u3001\u898b\u3084\u3059\u3044\u30b3\u30fc\u30c9\u304c\u66f8\u3051\u307e\u3059\u3002\u7d99\u627f\u306a\u3069\u306b\u3064\u3044\u3066\u306f\u3001\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u305c\u3072\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n            <a href=\"https:\/\/www.sejuku.net\/blog\/28182\" class=\"blog-card-anchor\">\n                <div class=\"blog-card\">\n                <div class=\"blog-card-content\">\n                    <div class=\"blog-card-thumbnail\">\n                    <img decoding=\"async\" class=\"blog-card-thumbnail-img\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/07\/python_class-150x85.jpg\">\n                    <\/div>\n                    <div class=\"blog-card-title-wrap\">\n                    <div class=\"blog-card-title\">\u3010Python\u5165\u9580\u3011\u30af\u30e9\u30b9\u306e\u4f7f\u3044\u65b9\u3092\u7c21\u5358\u89e3\u8aac\u3067\u697d\u3005\u30de\u30b9\u30bf\u30fc<\/div>\n                    <div class=\"blog-card-update-date\">\u66f4\u65b0\u65e5\uff1a2025\u5e7412\u670829\u65e5<\/div>\n                    <\/div>\n                <\/div>\n                <\/div>\n            <\/a>\n            \n<p>\u307e\u305a\u306f\u89aa\u306etemplate\u30d5\u30a1\u30a4\u30eb\u3092base.html\u3068\u3044\u3046\u540d\u524d\u3067\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:python decode:true \">&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;title&gt;template test&lt;\/title&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n{% block body %}\r\n{% endblock %}\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;<\/pre>\n<p>\u300c{% block \u30d6\u30ed\u30c3\u30af\u540d %}\u300d\u3068\u300c{% endblock %}\u300d\u3067\u5909\u66f4\u304c\u52a0\u3048\u3089\u308c\u308b\u90e8\u5206\u3092\u56f2\u307f\u3001\u305d\u306e\u90e8\u5206\u4ee5\u5916\u306f\u5171\u901a\u5316\u3057\u3066\u7d99\u627f\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u5834\u5408\u306ebody\u306f\u30d6\u30ed\u30c3\u30af\u540d\u306a\u306e\u3067\u3001\u30d1\u30fc\u30c4\u3054\u3068\u306b\u5206\u3051\u3066\u9069\u5207\u306a\u540d\u524d\u3092\u3064\u3051\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u6b21\u306b\u3001\u5b9f\u969b\u306b\u7d99\u627f\u3092\u884c\u3046\u5b50\u30da\u30fc\u30b8\u306eindex.html\u306b\u5909\u66f4\u3092\u52a0\u3048\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:python decode:true \">{% extends \"base.html\" %}\r\n \r\n{% block body %}\r\n&lt;p&gt;This is {{app}} test.&lt;\/p&gt;\r\n{% if is_weekday %}\r\n&lt;p&gt;Today is weekday.&lt;\/p&gt;\r\n{% else %}\r\n&lt;p&gt;Today is holiday.&lt;\/p&gt;\r\n{% endif %}\r\n{% endblock %}<\/pre>\n<p>1\u884c\u76ee\u306e\u300c{% extends \u201c\u89aa\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u540d\u201d %}\u300d\u3067\u7d99\u627f\u3092\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305fbody\u3068\u3044\u3046\u30d6\u30ed\u30c3\u30af\u540d\u304c\u898b\u3048\u307e\u3059\u304c\u3001\u3053\u308c\u306f\u7d99\u627f\u3057\u305f\u30d6\u30ed\u30c3\u30af\u3092\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u306b\u30da\u30fc\u30b8\u3067\u5171\u901a\u3067\u306f\u306a\u3044\u56fa\u6709\u306e\u5185\u5bb9\u3092\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001\u7d99\u627f\u3092\u3064\u304b\u3063\u305f\u30da\u30fc\u30b8\u304c\u51fa\u6765\u4e0a\u304c\u308a\u307e\u3057\u305f\u3002<\/p>\n<p><img decoding=\"async\" class=\"alignnone\" src=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2022\/11\/fccf716e7c1da08ea77abedac95bfb53.png\" width=\"740\" height=\"328\" \/><\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Django\u3067\u4f7f\u308f\u308c\u308btemplate\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u3066\u3082\u9577\u3044\u5185\u5bb9\u3067\u3057\u305f\u304c\u3001Django\u306etemplate\u3068\u3044\u3046\u4ed5\u7d44\u307f\u306b\u3064\u3044\u3066\u306f\u308f\u304b\u3063\u3066\u3044\u305f\u3060\u3051\u305f\u304b\u3068\u601d\u3044\u307e\u3059\u3002template\u306f\u3067\u304d\u308b\u3053\u3068\u304c\u591a\u3044\u306e\u3067\u3001\u4f7f\u3044\u65b9\u3092\u5fd8\u308c\u305f\u3089\u3053\u306e\u8a18\u4e8b\u3092\u518d\u5ea6\u8aad\u307f\u3001\u601d\u3044\u51fa\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<p>template\u30d5\u30a1\u30a4\u30eb\u3067\u4f7f\u308f\u308c\u308b\u5909\u6570\u3082\u3001Python\u306b\u8fd1\u3044\u69cb\u6587\u3067\u66f8\u304b\u308c\u3066\u3044\u308b\u306e\u306f\u899a\u3048\u308b\u306e\u304c\u3068\u3066\u3082\u697d\u306b\u306a\u308a\u307e\u3059\u306d\u3002\u30da\u30fc\u30b8\u305d\u306e\u3082\u306e\u306e\u8868\u73fe\u304c\u8c4a\u304b\u306b\u306a\u308btemplate\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u3063\u3066\u3001\u305c\u3072Web\u30da\u30fc\u30b8\u3092\u4f5c\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u56de\u306f\u3001Python\u306eDjango\u3067\u4f7f\u308f\u308c\u308btemplate\u306e\u66f8\u304d\u65b9\u3001\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002Django\u3067\u4f7f\u308f\u308c\u308bMTV\u30e2\u30c7\u30eb\u3067\u3082\u91cd\u8981\u306a\u90e8\u5206\u3092\u62c5\u3046template\u306b\u3064\u3044\u3066\u3001\u5b66\u7fd2\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001 MT [&hellip;]<\/p>\n","protected":false},"author":16433,"featured_media":36737,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2350],"tags":[471,49],"class_list":["post-26407","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-study","tag-django","tag-python"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u3010Django\u5165\u9580\u3011template\u3068HTML\u3092\u4f7f\u3063\u3066Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3088\u3046 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Django\u5165\u9580\u3011template\u3068HTML\u3092\u4f7f\u3063\u3066Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3088\u3046 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sejuku.net\/blog\/26407\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Django\u5165\u9580\u3011template\u3068HTML\u3092\u4f7f\u3063\u3066Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3088\u3046 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Django\u5165\u9580\u3011template\u3068HTML\u3092\u4f7f\u3063\u3066Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3088\u3046 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/26407\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:published_time\" content=\"2017-07-04T13:51:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:43:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/10\/image21.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/26407#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/26407\"},\"author\":{\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\"},\"headline\":\"\u3010Django\u5165\u9580\u3011template\u3068HTML\u3092\u4f7f\u3063\u3066Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3088\u3046\",\"datePublished\":\"2017-07-04T13:51:22+00:00\",\"dateModified\":\"2024-05-06T02:43:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/26407\"},\"wordCount\":272,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/26407#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/10\\\/image21.jpg\",\"keywords\":[\"Django\",\"python\"],\"articleSection\":[\"Python\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/26407\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/26407\",\"name\":\"\u3010Django\u5165\u9580\u3011template\u3068HTML\u3092\u4f7f\u3063\u3066Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3088\u3046 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/26407#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/26407#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/10\\\/image21.jpg\",\"datePublished\":\"2017-07-04T13:51:22+00:00\",\"dateModified\":\"2024-05-06T02:43:42+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Django\u5165\u9580\u3011template\u3068HTML\u3092\u4f7f\u3063\u3066Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3088\u3046 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/26407#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/26407\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/26407#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/10\\\/image21.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/10\\\/image21.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/26407#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Django\u5165\u9580\u3011template\u3068HTML\u3092\u4f7f\u3063\u3066Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3088\u3046\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\",\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\"},\"description\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-tech\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Django\u5165\u9580\u3011template\u3068HTML\u3092\u4f7f\u3063\u3066Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3088\u3046 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Django\u5165\u9580\u3011template\u3068HTML\u3092\u4f7f\u3063\u3066Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3088\u3046 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sejuku.net\/blog\/26407","og_locale":"ja_JP","og_type":"article","og_title":"\u3010Django\u5165\u9580\u3011template\u3068HTML\u3092\u4f7f\u3063\u3066Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3088\u3046 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Django\u5165\u9580\u3011template\u3068HTML\u3092\u4f7f\u3063\u3066Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3088\u3046 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/26407","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_published_time":"2017-07-04T13:51:22+00:00","article_modified_time":"2024-05-06T02:43:42+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/10\/image21.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/26407#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/26407"},"author":{"name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095"},"headline":"\u3010Django\u5165\u9580\u3011template\u3068HTML\u3092\u4f7f\u3063\u3066Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3088\u3046","datePublished":"2017-07-04T13:51:22+00:00","dateModified":"2024-05-06T02:43:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/26407"},"wordCount":272,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/26407#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/10\/image21.jpg","keywords":["Django","python"],"articleSection":["Python\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/26407","url":"https:\/\/www.sejuku.net\/blog\/26407","name":"\u3010Django\u5165\u9580\u3011template\u3068HTML\u3092\u4f7f\u3063\u3066Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3088\u3046 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/26407#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/26407#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/10\/image21.jpg","datePublished":"2017-07-04T13:51:22+00:00","dateModified":"2024-05-06T02:43:42+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Django\u5165\u9580\u3011template\u3068HTML\u3092\u4f7f\u3063\u3066Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3088\u3046 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/26407#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/26407"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/26407#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/10\/image21.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/10\/image21.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/26407#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010Django\u5165\u9580\u3011template\u3068HTML\u3092\u4f7f\u3063\u3066Web\u30da\u30fc\u30b8\u3092\u8868\u793a\u3057\u3088\u3046"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095","name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","caption":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8"},"description":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002","url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-tech"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/26407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/16433"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=26407"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/26407\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/36737"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=26407"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=26407"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=26407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}