{"title":"첫 번째 Django 앱 작성하기, part 8","version":"6.1","locale":"ko","docname":"intro/tutorial08","url":"/ko/6.1/intro/tutorial08/","canonical":"https://djangodocs.dev/ko/6.1/intro/tutorial08/","summary":"이 튜토리얼은 :doc: ` 튜토리얼 7`에서 중단된 부분부터 시작합니다. 웹 설문조사 애플리케이션을 구축했으니 이제 서드파티 패키지를 살펴보겠습니다. 장고의 강점 중 하나는 풍부한 서드파티 패키지 생태계입니다. 커뮤니티에서 개발한 패키지로 애플리케이션의 기능 세트를 빠르게 개선하는 데 사용할…","html":"<h1>첫 번째 Django 앱 작성하기, part 8<a class=\"heading-anchor\" href=\"#writing-your-first-django-app-part-8\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p>이 튜토리얼은 :doc:<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>튜토리얼 7`에서 중단된 부분부터 시작합니다. 웹 설문조사 애플리케이션을 구축했으니 이제 서드파티 패키지를 살펴보겠습니다. 장고의 강점 중 하나는 풍부한 서드파티 패키지 생태계입니다. 커뮤니티에서 개발한 패키지로 애플리케이션의 기능 세트를 빠르게 개선하는 데 사용할 수 있습니다.</p>\n<p>이 튜토리얼에서는 일반적으로 사용되는 서드파티 패키지인 :pypi:<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>Django Debug Toolbar &lt;django-debug-toolbar&gt;`를 추가하는 방법을 설명합니다. Django Debug Toolbar는 최근 몇 년간 Django 개발자 설문조사에서 가장 많이 사용되는 서드파티 패키지 상위 3위 안에 꾸준히 포함되어 왔습니다.</p>\n<aside class=\"admonition-where-to-get-help admonition\">\n<p class=\"admonition-title\">도움을 받을 수 있는 방법</p>\n<p>이 튜토리얼을 수행하는 데 문제가 있는 경우 FAQ 섹션인 :doc:<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>Getting Help &lt;/faq/help&gt;`으로 이동하십시오.</p>\n</aside>\n<section id=\"installing-django-debug-toolbar\">\n<h2>Django 디버그 툴바 설치하기<a class=\"heading-anchor\" href=\"#installing-django-debug-toolbar\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Django Debug Toolbar는 Django 웹 애플리케이션을 디버깅하는 데 유용한 도구입니다. 이 패키지는 커뮤니티 조직 <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>Django Commons &lt;<a class=\"reference external\" href=\"https://github.com/django-commons\">https://github.com/django-commons</a>&gt;`_에서 유지 관리되는 서드파티 패키지입니다. 이 도구 모음은 현재 요청과 응답에 대한 디버그 정보를 제공하는 패널을 통해 애플리케이션의 동작 방식을 이해하고 문제를 식별하는 데 도움을 줍니다.</p>\n<p>서드 파티 애플리케이션을 설치하려면 활성화된 가상 환경 내에서 아래 명령을 실행하여 패키지를 설치해야 합니다. 이는 이전 단계인 :ref:<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>install Django 1`과 유사합니다.</p>\n<div class=\"console\" data-console><div class=\"console-panel\" data-platform=\"unix\"><p class=\"console-label\" id=\"console-0-unix-label\">Linux / macOS</p><div class=\"code-block\" data-language=\"console\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code><span class=\"gp\">$ </span>python<span class=\"w\"> </span>-m<span class=\"w\"> </span>pip<span class=\"w\"> </span>install<span class=\"w\"> </span>django-debug-toolbar\n</code></pre></div>\n</div><div class=\"console-panel\" data-platform=\"windows\"><p class=\"console-label\" id=\"console-0-windows-label\">Windows</p><div class=\"code-block\" data-language=\"doscon\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Windows</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Windows shell\"><code><span class=\"gp\">...\\&gt;</span> py -m pip install django-debug-toolbar\n</code></pre></div></div></div>\n<p>Django와 통합되는 서드 파티 패키지를 프로젝트와 통합하기 위해 설치 후 몇 가지 설정이 필요합니다. 패키지의 Django 앱을 <a class=\"reference internal\" href=\"/ko/6.1/ref/settings/#std-setting-INSTALLED_APPS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">INSTALLED_APPS</span></code></a> 설정에 추가해야 할 수 있습니다. 일부 패키지는 URLconf(<code class=\"docutils literal notranslate\"><span class=\"pre\">urls.py</span></code>)에 추가하는 등 다른 변경이 필요합니다.</p>\n<p>장고 디버그 툴바에는 몇 가지 설정 단계가 필요합니다. 설치 가이드 &lt;<a class=\"reference external\" href=\"https://django-debug-toolbar.readthedocs.io/en/latest/installation.html\">https://django-debug-toolbar.readthedocs.io/en/latest/installation.html</a>&gt;`_에서 해당 단계를 따르세요. Django의 일정과 독립적으로 변경되는 서드 파티 패키지이므로 이 자습서에서는 중복하여 기술하지 않겠습니다.</p>\n<p>설치가 완료되면 <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a><a class=\"reference external\" href=\"http://localhost:8000/admin/\">http://localhost:8000/admin/</a><a href=\"#id3\"><span class=\"problematic\" id=\"id4\">``</span></a>에 접속했을 때 브라우저 창 오른쪽에 DjDT “handle”이 표시됩니다. 이를 클릭하면 디버그 툴바가 열리며, 각 패널에서 제공되는 도구를 사용할 수 있습니다. 패널에 어떤 정보가 표시되는지에 대한 자세한 내용은 <a href=\"#id5\"><span class=\"problematic\" id=\"id6\">`</span></a>panels documentation page`__를 참고하세요.</p>\n</section>\n<section id=\"getting-help-from-others\">\n<h2>다른 사람의 도움 받기<a class=\"heading-anchor\" href=\"#getting-help-from-others\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>예를 들어 툴바가 렌더링 되지 않는 등의 문제가 어느 순간에 발생할 수 있습니다. 이러한 문제가 발생하고 직접 문제를 해결할 수 없는 경우에 사용할 수 있는 옵션이 있습니다.</p>\n<ol class=\"arabic simple\">\n<li><p>특정 패키지에 문제가 있는 경우, 해당 패키지 문서에 문제 해결 가이드나 FAQ가 있는지 확인하세요. 예를 들어 Django Debug Toolbar에는 문제 해결 방법을 안내하는 <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>Tips section &lt;<a class=\"reference external\" href=\"https://django-debug-toolbar.readthedocs.io/en/latest/tips.html\">https://django-debug-toolbar.readthedocs.io/en/latest/tips.html</a>&gt;`_이 있습니다.</p></li>\n<li><p>패키지의 이슈 트래커에서 유사한 이슈를 검색하세요. Django Debug Toolbar의 이슈 트래커는 <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>GitHub &lt;<a class=\"reference external\" href=\"https://github.com/django-commons/django-debug-toolbar/issues\">https://github.com/django-commons/django-debug-toolbar/issues</a>&gt;`_에서 확인할 수 있습니다.</p></li>\n<li><p><a class=\"reference external\" href=\"https://forum.djangoproject.com/\">Django Forum</a> 을 참고하십시오.</p></li>\n<li><p><a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>Django Discord server &lt;<a class=\"reference external\" href=\"https://chat.djangoproject.com\">https://chat.djangoproject.com</a>&gt;`_에 참여하세요.</p></li>\n</ol>\n</section>\n<section id=\"installing-other-third-party-packages\">\n<h2>다른 서드파티 패키지 설치하기<a class=\"heading-anchor\" href=\"#installing-other-third-party-packages\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>더 많은 서드파티 패키지가 있습니다. 이 패키지는 훌륭한 Django 리소스인 <a class=\"reference external\" href=\"https://djangopackages.org/\">Django Packages</a> 에서 찾을 수 있습니다.</p>\n<p>어떤 서드파티 패키지를 사용해야 하는지 알기 어려울 수 있습니다. 이는 여러분의 필요와 목표에 따라 달라집니다. 때로는 알파 상태의 패키지를 사용해도 괜찮을 때가 있습니다. 다른 경우에는 프로덕션 준비가 완료된 패키지를 사용해야 할 수도 있습니다. Adam Johnson의 블로그 게시물 &lt;<a class=\"reference external\" href=\"https://adamj.eu/tech/2021/11/04/the-well-maintained-test/\">https://adamj.eu/tech/2021/11/04/the-well-maintained-test/</a>&gt;`_에는 패키지를 “잘 유지 관리된(well maintained)” 것으로 간주하는 일련의 특징에 대한 설명이 나와 있습니다. Django 패키지는 패키지가 마지막으로 업데이트된 시기와 같은 일부 특징들에 대한 데이터를 보여줍니다.</p>\n<p>Adam이 그의 게시물에서 지적했듯이, 질문 중 하나에 대한 대답이 “아니오”일 때, 그것은 기여할 수 있는 기회입니다.</p>\n</section>\n<section id=\"what-s-next\">\n<h2>다음 내용은?<a class=\"heading-anchor\" href=\"#what-s-next\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>초보 자습서는 여기서 끝납니다. 아울러 <a class=\"reference internal\" href=\"/ko/6.1/intro/whatsnext/\"><span class=\"doc\">앞으로 무엇을 해야할 지</span></a> 문서를 좀 더 읽어볼 수 있습니다.</p>\n<p>파이썬 패키징에 익숙하고 설문 조사를 “재사용 가능한 앱”으로 바꾸는 방법을 배우고 싶다면 <a class=\"reference internal\" href=\"/ko/6.1/intro/reusable-apps/\"><span class=\"doc\">심화 튜토리얼:재사용 가능한 애플리케이션을 만드는 법</span></a>을 읽어보십시오.</p>\n</section>","rootId":"writing-your-first-django-app-part-8","toc":[{"title":"Django 디버그 툴바 설치하기","anchor":"installing-django-debug-toolbar","children":[]},{"title":"다른 사람의 도움 받기","anchor":"getting-help-from-others","children":[]},{"title":"다른 서드파티 패키지 설치하기","anchor":"installing-other-third-party-packages","children":[]},{"title":"다음 내용은?","anchor":"what-s-next","children":[]}],"breadcrumbs":[{"docname":"intro/index","title":"시작하기","url":"/ko/6.1/intro/"}],"prev":{"docname":"intro/tutorial07","title":"첫 번째 장고 앱 작성하기, part 7","url":"/ko/6.1/intro/tutorial07/"},"next":{"docname":"intro/reusable-apps","title":"심화 튜토리얼: 재사용 가능한 앱을 만드는 법","url":"/ko/6.1/intro/reusable-apps/"},"formats":{"html":"/ko/6.1/intro/tutorial08/","markdown":"/ko/6.1/intro/tutorial08.md","json":"/ko/6.1/intro/tutorial08.json"},"source":"https://github.com/django/django/blob/stable/6.1.x/docs/intro/tutorial08.txt","official":"https://docs.djangoproject.com/ko/6.1/intro/tutorial08/","inVersions":["6.1","6.0","5.2","5.1","5.0","4.2"],"inLocales":["en","sv","zh-hans","ga","fr","ja","id","it","pt-br","ko","es","el","pl"]}