{"id":38408,"date":"2024-11-01T18:16:36","date_gmt":"2024-11-01T18:16:36","guid":{"rendered":"http:\/\/atmokpo.com\/w\/?p=38408"},"modified":"2024-11-26T06:44:25","modified_gmt":"2024-11-26T06:44:25","slug":"fastapi-%ec%84%9c%eb%b2%84%ea%b0%9c%eb%b0%9c-fastapi%ec%97%90%ec%84%9c-jinja%eb%a5%bc-%ec%82%ac%ec%9a%a9%ed%95%98%eb%8a%94-%eb%b0%a9%eb%b2%95","status":"publish","type":"post","link":"https:\/\/atmokpo.com\/w\/38408\/","title":{"rendered":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c Jinja\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95"},"content":{"rendered":"<p><body><\/p>\n<p>\ucd5c\uadfc \uba87 \ub144\uac04 \uc6f9 \uac1c\ubc1c\uc758 \ud2b8\ub80c\ub4dc\ub294 \ubcc0\ud654\ud574\uc654\uc73c\uba70, Python \uc5b8\uc5b4\uc758 \uc778\uae30\ub3c4 \uadf8\uc5d0 \ud798\uc785\uc5b4 \ub098\ub780\ud788 \uc99d\uac00\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. FastAPI\ub294 \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud558\ub294 \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uc131\ub2a5\uacfc \uc0ac\uc6a9 \ud3b8\uc758\uc131\uc744 \ubaa8\ub450 \uac16\ucd98 \ud2b9\uc9d5\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\ub97c \uc774\uc6a9\ud558\uc5ec \ubc31\uc5d4\ub4dc \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\ub294 \ubc29\ubc95\uacfc \ud568\uaed8, Jinja \ud15c\ud50c\ub9bf \uc5d4\uc9c4\uc744 \uc0ac\uc6a9\ud558\uc5ec \ub3d9\uc801\uc778 HTML \ud398\uc774\uc9c0\ub97c \uc0dd\uc131\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uae4a\uc774 \uc788\uac8c \ub2e4\ub8e8\uc5b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>\ubaa9\ucc28<\/h2>\n<ul>\n<li>1. FastAPI \uac1c\uc694<\/li>\n<li>2. Jinja \ud15c\ud50c\ub9bf \uc5d4\uc9c4 \uc774\ud574\ud558\uae30<\/li>\n<li>3. FastAPI\uc640 Jinja \uc5f0\ub3d9\ud558\uae30<\/li>\n<li>4. \uc2e4\uc81c \uc608\uc81c: \uae30\ubcf8 FastAPI \uc11c\ubc84 \uad6c\ucd95\ud558\uae30<\/li>\n<li>5. Jinja\ub97c \ud65c\uc6a9\ud55c \ub3d9\uc801 HTML \ud398\uc774\uc9c0 \uc0dd\uc131\ud558\uae30<\/li>\n<li>6. \uacb0\ub860 \ubc0f \ud5a5\ud6c4 \ud559\uc2b5 \ubc29\ud5a5<\/li>\n<\/ul>\n<h2>1. FastAPI \uac1c\uc694<\/h2>\n<p>FastAPI\ub294 Python 3.6+\ubd80\ud130 \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, RESTful API\ub97c \uc27d\uac8c \uac1c\ubc1c\ud560 \uc218 \uc788\ub3c4\ub85d \ub3c4\uc640\uc90d\ub2c8\ub2e4. FastAPI\ub294 \ub2e4\uc74c\uacfc \uac19\uc740 \uc8fc\uc694 \ud2b9\uc9d5\ub4e4\uc774 \uc788\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\uc790\ub3d9 \ubb38\uc11c\ud654: Swagger UI\ub97c \ud1b5\ud574 API \ubb38\uc11c\ub97c \uc790\ub3d9\uc73c\ub85c \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/li>\n<li>\ub192\uc740 \uc131\ub2a5: Starlette\ub97c \uae30\ubc18\uc73c\ub85c \ud558\uc5ec \ube44\ub3d9\uae30 \ub7ec\ub2dd\uc744 \uc9c0\uc6d0\ud569\ub2c8\ub2e4.<\/li>\n<li>\ud0c0\uc785 \ud78c\ud2b8: Python\uc758 \ud0c0\uc785 \ud78c\ud2b8\ub97c \ud65c\uc6a9\ud558\uc5ec \ucf54\ub4dc\uc758 \uac00\ub3c5\uc131\uacfc \uc548\uc804\uc131\uc744 \ud5a5\uc0c1\uc2dc\ud0b5\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>2. Jinja \ud15c\ud50c\ub9bf \uc5d4\uc9c4 \uc774\ud574\ud558\uae30<\/h2>\n<p>Jinja\ub294 Python\uc5d0\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \uac00\uc7a5 \uc778\uae30 \uc788\ub294 \ud15c\ud50c\ub9bf \uc5d4\uc9c4\uc73c\ub85c, HTML \ud398\uc774\uc9c0\ub97c \ub3d9\uc801\uc73c\ub85c \uc0dd\uc131\ud558\ub294 \ub370 \uc720\uc6a9\ud569\ub2c8\ub2e4. Jinja\uc758 \uc8fc\ub41c \uae30\ub2a5\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\ud15c\ud50c\ub9bf \uc0c1\uc18d: \uae30\ubcf8 \uad6c\uc870\ub97c \uc124\uc815\ud558\uace0, \ud544\uc694\uc5d0 \ub530\ub77c \uc790\uc2dd \ud15c\ud50c\ub9bf\uc5d0\uc11c \uc774\ub97c \uc0c1\uc18d\ubc1b\uc544 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/li>\n<li>\uc870\uac74\ubb38 \ubc0f \ubc18\ubcf5\ubb38 \uc9c0\uc6d0: Jinja\ub294 \ub370\uc774\ud130\uc758 \uc870\uac74\uc5d0 \ub530\ub77c HTML\uc744 \uad6c\uc131\ud560 \uc218 \uc788\ub294 \uae30\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/li>\n<li>\ud544\ud130 \uae30\ub2a5: \ud15c\ud50c\ub9bf\uc5d0\uc11c \ub370\uc774\ud130\ub97c \uc6d0\ud558\ub294 \ud615\ud0dc\ub85c \ubcc0\ud658\ud560 \uc218 \uc788\ub294 \ub2e4\uc591\ud55c \ud544\ud130\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.<\/li>\n<\/ul>\n<h2>3. FastAPI\uc640 Jinja \uc5f0\ub3d9\ud558\uae30<\/h2>\n<p>FastAPI\ub294 Jinja \ud15c\ud50c\ub9bf \uc5d4\uc9c4\uacfc\uc758 \ud1b5\ud569\uc774 \uc6a9\uc774\ud558\uc5ec, HTML \ud398\uc774\uc9c0\ub97c \uc0dd\uc131\ud558\ub294 \ub370 \ud544\uc694\ud55c \uc124\uc815\uc774 \uac04\ub2e8\ud569\ub2c8\ub2e4. \ub2e4\uc74c\uc740 FastAPI\uc640 Jinja\ub97c \uc5f0\ub3d9\ud558\ub294 \uae30\ubcf8\uc801\uc778 \ubc29\ubc95\uc785\ub2c8\ub2e4:<\/p>\n<h3>3.1. FastAPI \uc124\uce58\ud558\uae30<\/h3>\n<pre><code>pip install fastapi uvicorn jinja2<\/code><\/pre>\n<h3>3.2. \uae30\ubcf8 \ud504\ub85c\uc81d\ud2b8 \uad6c\uc870<\/h3>\n<p>\ud504\ub85c\uc81d\ud2b8\uc758 \uae30\ubcf8 \ud3f4\ub354 \uad6c\uc870\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 \uc124\uc815\ud569\ub2c8\ub2e4:<\/p>\n<ul>\n<li>\/your_project\n<ul>\n<li>main.py<\/li>\n<li>\/templates\n<ul>\n<li>index.html<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>3.3. FastAPI \uc571\uacfc Jinja \uc124\uc815\ud558\uae30<\/h3>\n<p>\uc774\uc81c FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc124\uc815\ud558\uace0 Jinja \ud15c\ud50c\ub9bf \uc5d4\uc9c4\uc744 \ub4f1\ub85d\ud574 \ubcf4\uaca0\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>from fastapi import FastAPI\nfrom fastapi.responses import HTMLResponse\nfrom fastapi.templating import Jinja2Templates\nfrom fastapi import Request\n\napp = FastAPI()\n\ntemplates = Jinja2Templates(directory=\"templates\")\n\n@app.get(\"\/\", response_class=HTMLResponse)\nasync def read_root(request: Request):\n    return templates.TemplateResponse(\"index.html\", {\"request\": request})<\/code><\/pre>\n<h2>4. \uc2e4\uc81c \uc608\uc81c: \uae30\ubcf8 FastAPI \uc11c\ubc84 \uad6c\ucd95\ud558\uae30<\/h2>\n<p>\uc774\uc81c \uae30\ubcf8 FastAPI \uc11c\ubc84\ub97c \uad6c\ucd95\ud558\ub294 \ubc29\ubc95\uc744 \uc54c\uc544\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \uc774\uc804\uc5d0 \uc124\uc815\ud55c <code>main.py<\/code> \ud30c\uc77c\uc5d0 \uc544\ub798\uc758 \ucf54\ub4dc\ub97c \ucd94\uac00\ud558\uba74 \ub429\ub2c8\ub2e4:<\/p>\n<pre><code>from fastapi import FastAPI\nfrom fastapi.responses import HTMLResponse\nfrom fastapi.templating import Jinja2Templates\nfrom fastapi import Request\n\napp = FastAPI()\n\ntemplates = Jinja2Templates(directory=\"templates\")\n\n@app.get(\"\/\", response_class=HTMLResponse)\nasync def read_root(request: Request):\n    return templates.TemplateResponse(\"index.html\", {\"request\": request})\n\n# \uc608\uc678 \ucc98\ub9ac\n@app.get(\"\/items\/{item_id}\")\nasync def read_item(item_id: int):\n    return {\"item_id\": item_id}<\/code><\/pre>\n<p>\uc704 \ucf54\ub4dc\ub294 FastAPI \uc560\ud50c\ub9ac\ucf00\uc774\uc158\uc744 \uc124\uc815\ud558\uace0, \ub450 \uac1c\uc758 \uacbd\ub85c\ub97c \uc815\uc758\ud558\ub294 \uc791\uc5c5\uc744 \uc218\ud589\ud569\ub2c8\ub2e4. \uccab \ubc88\uc9f8 \uacbd\ub85c\ub294 \ub8e8\ud2b8 \uacbd\ub85c\uc774\uace0, \ub450 \ubc88\uc9f8 \uacbd\ub85c\ub294 \ub3d9\uc801 \uacbd\ub85c\ub85c, \ud2b9\uc815 item ID\ub97c \uc785\ub825\ubc1b\uc544 \ud574\ub2f9 \uac12\uc744 JSON \ud615\ud0dc\ub85c \ubc18\ud658\ud569\ub2c8\ub2e4.<\/p>\n<h2>5. Jinja\ub97c \ud65c\uc6a9\ud55c \ub3d9\uc801 HTML \ud398\uc774\uc9c0 \uc0dd\uc131\ud558\uae30<\/h2>\n<p>\uc774\uc81c Jinja \ud15c\ud50c\ub9bf\uc744 \ud65c\uc6a9\ud558\uc5ec HTML \ud398\uc774\uc9c0\ub97c \ub3d9\uc801\uc73c\ub85c \uc0dd\uc131\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. <code>templates\/index.html<\/code> \ud30c\uc77c\uc744 \uc544\ub798\uc640 \uac19\uc774 \uc0dd\uc131\ud569\ub2c8\ub2e4:<\/p>\n<pre><code>&lt;!DOCTYPE html&gt;\n&lt;html lang=\"ko\"&gt;\n&lt;head&gt;\n    &lt;meta charset=\"UTF-8\"&gt;\n    &lt;title&gt;FastAPI\uc640 Jinja \uc608\uc81c&lt;\/title&gt;\n&lt;\/head&gt;\n&lt;body&gt;\n    &lt;h1&gt;\uc548\ub155\ud558\uc138\uc694, FastAPI\uc640 Jinja\ub97c \uc0ac\uc6a9\ud558\uc5ec \ub3d9\uc801\uc73c\ub85c \uc0dd\uc131\ub41c \ud398\uc774\uc9c0\uc785\ub2c8\ub2e4.&lt;\/h1&gt;\n    &lt;p&gt;\ud604\uc7ac \uc811\uc18d\ud55c \uacbd\ub85c: {{ request.url.path }}&lt;\/p&gt;\n&lt;\/body&gt;\n&lt;\/html&gt;<\/code><\/pre>\n<p>\uc774 HTML \ud30c\uc77c\uc740 FastAPI\uc5d0\uc11c \uc804\ub2ec\ud55c <code>request<\/code> \uac1d\uccb4\uc758 URL \uacbd\ub85c\ub97c \ucd9c\ub825\ud569\ub2c8\ub2e4. \uc774\uc81c FastAPI \uc11c\ubc84\ub97c \uc2e4\ud589\ud558\uace0 \uc6f9 \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c \ud655\uc778\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4:<\/p>\n<pre><code>uvicorn main:app --reload<\/code><\/pre>\n<p>\uc774\uc81c http:\/\/127.0.0.1:8000\/ \uc5d0 \uc811\uadfc\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc704\uc5d0\uc11c \uc124\uc815\ud55c HTML \ud398\uc774\uc9c0\uac00 \ub80c\ub354\ub9c1 \ub418\uc5b4 \ud45c\uc2dc\ub420 \uac83\uc785\ub2c8\ub2e4. \ub610\ud55c, \/items\/1\uc640 \uac19\uc740 \uacbd\ub85c\uc5d0 \uc811\uadfc\ud558\uba74 JSON \ud615\ud0dc\ub85c \uc544\uc774\ud15c ID\ub97c \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2>6. \uacb0\ub860 \ubc0f \ud5a5\ud6c4 \ud559\uc2b5 \ubc29\ud5a5<\/h2>\n<p>FastAPI\uc640 Jinja \ud15c\ud50c\ub9bf \uc5d4\uc9c4\uc744 \ud65c\uc6a9\ud558\uc5ec \ub3d9\uc801\uc778 \uc6f9 \ud398\uc774\uc9c0\ub97c \uc27d\uac8c \uad6c\ucd95\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uc0b4\ud3b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4. FastAPI\uc758 \uac15\ub825\ud55c \uae30\ub2a5\uc740 REST API \uac1c\ubc1c \ubfd0\ub9cc \uc544\ub2c8\ub77c \ud6a8\uc728\uc801\uc778 \uc6f9 \uc560\ud50c\ub9ac\ucf00\uc774\uc158 \uc791\uc131\uc5d0\ub3c4 \ud070 \ub3c4\uc6c0\uc744 \uc90d\ub2c8\ub2e4. \ud5a5\ud6c4 \uc774 \uc8fc\uc81c\ub85c \ub354 \uae4a\uc774 \uc788\ub294 \ud559\uc2b5\uc744 \uc6d0\ud558\uc2e0\ub2e4\uba74, \ub2e4\uc74c\uacfc \uac19\uc740 \uc8fc\uc81c\ub97c \uace0\ub824\ud574 \ubcf4\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4:<\/p>\n<ul>\n<li>FastAPI\uc758 OAuth2 \ubc0f JWT \uc778\uc99d<\/li>\n<li>\ub370\uc774\ud130\ubca0\uc774\uc2a4\uc640\uc758 \ud1b5\ud569 (SQLAlchemy, Tortoise-ORM \ub4f1)<\/li>\n<li>\ube44\ub3d9\uae30 \uc791\uc5c5 \ucc98\ub9ac (Celery \ub4f1)<\/li>\n<\/ul>\n<p>\ucd5c\uc2e0 \ud2b8\ub80c\ub4dc\uc5d0 \ub9de\ucd94\uc5b4 FastAPI\uc758 \uae30\ub2a5\uc744 \ud65c\uc6a9\ud558\uc5ec \ub354\uc6b1 \ubc1c\uc804\ud558\ub294 \uc6f9 \uac1c\ubc1c\uc790\uac00 \ub418\uc5b4\ubcf4\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4!<\/p>\n<p><\/body><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ucd5c\uadfc \uba87 \ub144\uac04 \uc6f9 \uac1c\ubc1c\uc758 \ud2b8\ub80c\ub4dc\ub294 \ubcc0\ud654\ud574\uc654\uc73c\uba70, Python \uc5b8\uc5b4\uc758 \uc778\uae30\ub3c4 \uadf8\uc5d0 \ud798\uc785\uc5b4 \ub098\ub780\ud788 \uc99d\uac00\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. FastAPI\ub294 \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud558\ub294 \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uc131\ub2a5\uacfc \uc0ac\uc6a9 \ud3b8\uc758\uc131\uc744 \ubaa8\ub450 \uac16\ucd98 \ud2b9\uc9d5\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\ub97c \uc774\uc6a9\ud558\uc5ec \ubc31\uc5d4\ub4dc \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\ub294 \ubc29\ubc95\uacfc \ud568\uaed8, Jinja \ud15c\ud50c\ub9bf \uc5d4\uc9c4\uc744 \uc0ac\uc6a9\ud558\uc5ec \ub3d9\uc801\uc778 HTML \ud398\uc774\uc9c0\ub97c \uc0dd\uc131\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uae4a\uc774 \uc788\uac8c \ub2e4\ub8e8\uc5b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ubaa9\ucc28 1. FastAPI &hellip; <a href=\"https:\/\/atmokpo.com\/w\/38408\/\" class=\"more-link\">\ub354 \ubcf4\uae30<span class=\"screen-reader-text\"> &#8220;FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c Jinja\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[183],"tags":[],"class_list":["post-38408","post","type-post","status-publish","format-standard","hentry","category-fastapi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c Jinja\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/atmokpo.com\/w\/38408\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c Jinja\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"og:description\" content=\"\ucd5c\uadfc \uba87 \ub144\uac04 \uc6f9 \uac1c\ubc1c\uc758 \ud2b8\ub80c\ub4dc\ub294 \ubcc0\ud654\ud574\uc654\uc73c\uba70, Python \uc5b8\uc5b4\uc758 \uc778\uae30\ub3c4 \uadf8\uc5d0 \ud798\uc785\uc5b4 \ub098\ub780\ud788 \uc99d\uac00\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. FastAPI\ub294 \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud558\ub294 \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uc131\ub2a5\uacfc \uc0ac\uc6a9 \ud3b8\uc758\uc131\uc744 \ubaa8\ub450 \uac16\ucd98 \ud2b9\uc9d5\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\ub97c \uc774\uc6a9\ud558\uc5ec \ubc31\uc5d4\ub4dc \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\ub294 \ubc29\ubc95\uacfc \ud568\uaed8, Jinja \ud15c\ud50c\ub9bf \uc5d4\uc9c4\uc744 \uc0ac\uc6a9\ud558\uc5ec \ub3d9\uc801\uc778 HTML \ud398\uc774\uc9c0\ub97c \uc0dd\uc131\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uae4a\uc774 \uc788\uac8c \ub2e4\ub8e8\uc5b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ubaa9\ucc28 1. FastAPI &hellip; \ub354 \ubcf4\uae30 &quot;FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c Jinja\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/atmokpo.com\/w\/38408\/\" \/>\n<meta property=\"og:site_name\" content=\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\" \/>\n<meta property=\"article:published_time\" content=\"2024-11-01T18:16:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-11-26T06:44:25+00:00\" \/>\n<meta name=\"author\" content=\"root\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:site\" content=\"@bebubo4\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"root\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/atmokpo.com\/w\/38408\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38408\/\"},\"author\":{\"name\":\"root\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\"},\"headline\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c Jinja\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\",\"datePublished\":\"2024-11-01T18:16:36+00:00\",\"dateModified\":\"2024-11-26T06:44:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38408\/\"},\"wordCount\":83,\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"articleSection\":[\"FastAPI\uc11c\ubc84\uac1c\ubc1c\"],\"inLanguage\":\"ko-KR\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/atmokpo.com\/w\/38408\/\",\"url\":\"https:\/\/atmokpo.com\/w\/38408\/\",\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c Jinja\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"isPartOf\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#website\"},\"datePublished\":\"2024-11-01T18:16:36+00:00\",\"dateModified\":\"2024-11-26T06:44:25+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/atmokpo.com\/w\/38408\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/atmokpo.com\/w\/38408\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/atmokpo.com\/w\/38408\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\/\/atmokpo.com\/w\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c Jinja\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/atmokpo.com\/w\/#website\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/atmokpo.com\/w\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/atmokpo.com\/w\/#organization\",\"name\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\",\"url\":\"https:\/\/atmokpo.com\/w\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"contentUrl\":\"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png\",\"width\":400,\"height\":400,\"caption\":\"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8\"},\"image\":{\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/x.com\/bebubo4\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7\",\"name\":\"root\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g\",\"caption\":\"root\"},\"sameAs\":[\"http:\/\/atmokpo.com\/w\"],\"url\":\"https:\/\/atmokpo.com\/w\/author\/root\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c Jinja\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","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:\/\/atmokpo.com\/w\/38408\/","og_locale":"ko_KR","og_type":"article","og_title":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c Jinja\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","og_description":"\ucd5c\uadfc \uba87 \ub144\uac04 \uc6f9 \uac1c\ubc1c\uc758 \ud2b8\ub80c\ub4dc\ub294 \ubcc0\ud654\ud574\uc654\uc73c\uba70, Python \uc5b8\uc5b4\uc758 \uc778\uae30\ub3c4 \uadf8\uc5d0 \ud798\uc785\uc5b4 \ub098\ub780\ud788 \uc99d\uac00\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. FastAPI\ub294 \ube44\ub3d9\uae30 \ud504\ub85c\uadf8\ub798\ubc0d\uc744 \uc9c0\uc6d0\ud558\ub294 \ud604\ub300\uc801\uc778 \uc6f9 \ud504\ub808\uc784\uc6cc\ud06c\ub85c, \uc131\ub2a5\uacfc \uc0ac\uc6a9 \ud3b8\uc758\uc131\uc744 \ubaa8\ub450 \uac16\ucd98 \ud2b9\uc9d5\uc744 \uac00\uc9c0\uace0 \uc788\uc2b5\ub2c8\ub2e4. \ubcf8 \uac15\uc88c\uc5d0\uc11c\ub294 FastAPI\ub97c \uc774\uc6a9\ud558\uc5ec \ubc31\uc5d4\ub4dc \uc11c\ubc84\ub97c \uac1c\ubc1c\ud558\ub294 \ubc29\ubc95\uacfc \ud568\uaed8, Jinja \ud15c\ud50c\ub9bf \uc5d4\uc9c4\uc744 \uc0ac\uc6a9\ud558\uc5ec \ub3d9\uc801\uc778 HTML \ud398\uc774\uc9c0\ub97c \uc0dd\uc131\ud558\ub294 \ubc29\ubc95\uc5d0 \ub300\ud574 \uae4a\uc774 \uc788\uac8c \ub2e4\ub8e8\uc5b4\ubcf4\uaca0\uc2b5\ub2c8\ub2e4. \ubaa9\ucc28 1. FastAPI &hellip; \ub354 \ubcf4\uae30 \"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c Jinja\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\"","og_url":"https:\/\/atmokpo.com\/w\/38408\/","og_site_name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","article_published_time":"2024-11-01T18:16:36+00:00","article_modified_time":"2024-11-26T06:44:25+00:00","author":"root","twitter_card":"summary_large_image","twitter_creator":"@bebubo4","twitter_site":"@bebubo4","twitter_misc":{"\uae00\uc4f4\uc774":"root","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/atmokpo.com\/w\/38408\/#article","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/38408\/"},"author":{"name":"root","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7"},"headline":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c Jinja\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95","datePublished":"2024-11-01T18:16:36+00:00","dateModified":"2024-11-26T06:44:25+00:00","mainEntityOfPage":{"@id":"https:\/\/atmokpo.com\/w\/38408\/"},"wordCount":83,"publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"articleSection":["FastAPI\uc11c\ubc84\uac1c\ubc1c"],"inLanguage":"ko-KR"},{"@type":"WebPage","@id":"https:\/\/atmokpo.com\/w\/38408\/","url":"https:\/\/atmokpo.com\/w\/38408\/","name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c Jinja\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95 - \ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","isPartOf":{"@id":"https:\/\/atmokpo.com\/w\/#website"},"datePublished":"2024-11-01T18:16:36+00:00","dateModified":"2024-11-26T06:44:25+00:00","breadcrumb":{"@id":"https:\/\/atmokpo.com\/w\/38408\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/atmokpo.com\/w\/38408\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/atmokpo.com\/w\/38408\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/atmokpo.com\/w\/en\/"},{"@type":"ListItem","position":2,"name":"FastAPI \uc11c\ubc84\uac1c\ubc1c, FastAPI\uc5d0\uc11c Jinja\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95"}]},{"@type":"WebSite","@id":"https:\/\/atmokpo.com\/w\/#website","url":"https:\/\/atmokpo.com\/w\/","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","description":"","publisher":{"@id":"https:\/\/atmokpo.com\/w\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/atmokpo.com\/w\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/atmokpo.com\/w\/#organization","name":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8","url":"https:\/\/atmokpo.com\/w\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/","url":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","contentUrl":"https:\/\/atmokpo.com\/w\/wp-content\/uploads\/2024\/11\/logo.png","width":400,"height":400,"caption":"\ub77c\uc774\ube0c\uc2a4\ub9c8\ud2b8"},"image":{"@id":"https:\/\/atmokpo.com\/w\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/x.com\/bebubo4"]},{"@type":"Person","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/91b6b3b138fbba0efb4ae64b1abd81d7","name":"root","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/atmokpo.com\/w\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/708197b41fc6435a7ce22d951b25d4a47e9e904270cb1f04682d4f025066f80c?s=96&d=mm&r=g","caption":"root"},"sameAs":["http:\/\/atmokpo.com\/w"],"url":"https:\/\/atmokpo.com\/w\/author\/root\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38408","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/comments?post=38408"}],"version-history":[{"count":1,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38408\/revisions"}],"predecessor-version":[{"id":38409,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/posts\/38408\/revisions\/38409"}],"wp:attachment":[{"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/media?parent=38408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/categories?post=38408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atmokpo.com\/w\/wp-json\/wp\/v2\/tags?post=38408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}