{"title":"다프네와 함께 django를 사용하는 방법","version":"4.0","locale":"ko","docname":"howto/deployment/asgi/daphne","url":"/ko/4.0/howto/deployment/asgi/daphne/","canonical":"https://djangodocs.dev/ko/4.0/howto/deployment/asgi/daphne/","summary":"Daphne_는 UNIX용 Pure-Python ASGI 서버이며, Django 프로젝트의 멤버에 의해 유지보수됩니다. ASGI의 참조 서버 역할을 합니다 다프네 설치 Link to this heading # You can install Daphne with pip : Shell Copy…","html":"<h1>다프네와 함께 django를 사용하는 방법<a class=\"heading-anchor\" href=\"#how-to-use-django-with-daphne\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p>Daphne_는 UNIX용 Pure-Python ASGI 서버이며, Django 프로젝트의 멤버에 의해 유지보수됩니다. ASGI의 참조 서버 역할을 합니다</p>\n<section id=\"installing-daphne\">\n<h2>다프네 설치<a class=\"heading-anchor\" href=\"#installing-daphne\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>You can install Daphne with <code class=\"docutils literal notranslate\"><span class=\"pre\">pip</span></code>:</p>\n<div class=\"code-block\" data-language=\"bash\"><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>python<span class=\"w\"> </span>-m<span class=\"w\"> </span>pip<span class=\"w\"> </span>install<span class=\"w\"> </span>daphne\n</code></pre></div>\n</section>\n<section id=\"running-django-in-daphne\">\n<h2>다프네에서 djagno 작동<a class=\"heading-anchor\" href=\"#running-django-in-daphne\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>다프네가 설치되면 다프네 서버 프로세스를 시작하는 <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>다프네” 명령이 나온다. 간단히 말해, 다프네는 ASGI 애플리케이션 개체를 포함하는 모듈의 위치로 호출되어야 하며, 그 다음에 애플리케이션 이름이 콜론으로 구분됩니다.</p>\n<p>일반적인 Django 프로젝트의 경우 Daphne을 호출하는 방법은 다음과 같습니다.</p>\n<div class=\"code-block\" data-language=\"bash\"><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>daphne<span class=\"w\"> </span>myproject.asgi:application\n</code></pre></div>\n<p>이로써 “127.0.0.1:8000”에 대한 청취가 시작된다. 프로젝트가 Python 경로에 있어야 합니다. <a href=\"#id1\"><span class=\"problematic\" id=\"id2\">``</span></a>관리”와 동일한 디렉토리에서 이 명령을 실행해야 합니다.</p>\n</section>","rootId":"how-to-use-django-with-daphne","toc":[{"title":"다프네 설치","anchor":"installing-daphne","children":[]},{"title":"다프네에서 djagno 작동","anchor":"running-django-in-daphne","children":[]}],"breadcrumbs":[{"docname":"howto/index","title":"“How-to” 가이드","url":"/ko/4.0/howto/"},{"docname":"howto/deployment/index","title":"How to deploy Django","url":"/ko/4.0/howto/deployment/"},{"docname":"howto/deployment/asgi/index","title":"ASGI를 사용하여 배포하는 방법","url":"/ko/4.0/howto/deployment/asgi/"}],"prev":{"docname":"howto/deployment/asgi/index","title":"ASGI를 사용하여 배포하는 방법","url":"/ko/4.0/howto/deployment/asgi/"},"next":{"docname":"howto/deployment/asgi/hypercorn","title":"하이퍼콘과 함께 장고를 사용하는 방법","url":"/ko/4.0/howto/deployment/asgi/hypercorn/"},"formats":{"html":"/ko/4.0/howto/deployment/asgi/daphne/","markdown":"/ko/4.0/howto/deployment/asgi/daphne.md","json":"/ko/4.0/howto/deployment/asgi/daphne.json"},"source":"https://github.com/django/django/blob/stable/4.0.x/docs/howto/deployment/asgi/daphne.txt","official":"https://docs.djangoproject.com/ko/4.0/howto/deployment/asgi/daphne/","inVersions":["6.1","6.0","5.2","5.1","5.0","4.2","4.1","4.0","3.2","3.1","3.0"],"inLocales":["en","zh-hans","fr","ja","id","it","pt-br","ko","es","el","pl"]}