{"title":"Django 애플리케이션을 삭제하는 방법","version":"6.0","locale":"ko","docname":"howto/delete-app","url":"/ko/6.0/howto/delete-app/","canonical":"https://djangodocs.dev/ko/6.0/howto/delete-app/","summary":"Django는 기능 세트를 :doc: ` applications</ref/applications/>`라고 하는 Python 패키지로 묶을 수 있습니다. 요구 사항이 변경되면 애플리케이션이 더 이상 사용되지 않거나 필요 없어질 수 있습니다. 다음 단계에 따라 애플리케이션을 안전하게 삭제할 수…","html":"<h1>Django 애플리케이션을 삭제하는 방법<a class=\"heading-anchor\" href=\"#how-to-delete-a-django-application\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p>Django는 기능 세트를 :doc:<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>applications&lt;/ref/applications/&gt;`라고 하는 Python 패키지로 묶을 수 있습니다. 요구 사항이 변경되면 애플리케이션이 더 이상 사용되지 않거나 필요 없어질 수 있습니다. 다음 단계에 따라 애플리케이션을 안전하게 삭제할 수 있습니다.</p>\n<ol class=\"arabic simple\">\n<li><p>앱에 대한 모든 참조(import 문, 외래 키 등)를 제거합니다.</p></li>\n<li><p>해당 <code class=\"docutils literal notranslate\"><span class=\"pre\">models.py</span></code> 파일에서 모든 모델을 삭제합니다.</p></li>\n<li><p>:djadmin:<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>makemigrations`를 실행하여 관련 마이그레이션을 생성합니다. 이 단계에서는 삭제된 모델의 테이블을 제거하고 해당 모델과 연결된 관계를 업데이트하는 데 필요한 마이그레이션이 생성됩니다.</p></li>\n<li><p>다른 앱의 마이그레이션에 있는 이 앱에 대한 참조를 :ref:<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>Squash &lt;migration-squashing&gt;`로 정리하세요.</p></li>\n<li><p>Apply migrations locally, run tests, and verify the correctness of your\nproject.</p></li>\n<li><p>업데이트된 Django 프로젝트를 배포합니다.</p></li>\n<li><p>:setting:<a href=\"#id1\"><span class=\"problematic\" id=\"id2\">`</span></a>INSTALLED_APPS`에서 애플리케이션을 제거합니다.</p></li>\n<li><p>마지막으로 애플리케이션 디렉토리를 삭제합니다.</p></li>\n</ol>","rootId":"how-to-delete-a-django-application","toc":[],"breadcrumbs":[{"docname":"howto/index","title":"How-to 가이드","url":"/ko/6.0/howto/"}],"prev":{"docname":"howto/error-reporting","title":"오류 보고를 관리하는 방법","url":"/ko/6.0/howto/error-reporting/"},"next":{"docname":"howto/upgrade-version","title":"Django를 최신 버전으로 업그레이드하는 방법","url":"/ko/6.0/howto/upgrade-version/"},"formats":{"html":"/ko/6.0/howto/delete-app/","markdown":"/ko/6.0/howto/delete-app.md","json":"/ko/6.0/howto/delete-app.json"},"source":"https://github.com/django/django/blob/stable/6.0.x/docs/howto/delete-app.txt","official":"https://docs.djangoproject.com/ko/6.0/howto/delete-app/","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"]}