{"title":"자주 묻는 질문: 관리자","version":"4.0","locale":"ko","docname":"faq/admin","url":"/ko/4.0/faq/admin/","canonical":"https://djangodocs.dev/ko/4.0/faq/admin/","summary":"유효한 아이디와 패스워드를 입력해도 로그인을 할 수 없습니다. 아무 오류메시지 없이 로그인 페이지가 다시 나옵니다. Link to this heading # 로그인 쿠키가 재대로 설정되어 있지 않습니다. Django가 전송한 도메인의 쿠키가 브라우저의 도메인과 일치하지 않기 때문입니다.…","html":"<h1>자주 묻는 질문: 관리자<a class=\"heading-anchor\" href=\"#faq-the-admin\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<section id=\"i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-just-brings-up-the-login-page-again-with-no-error-messages\">\n<h2>유효한 아이디와 패스워드를 입력해도 로그인을 할 수 없습니다. 아무 오류메시지 없이 로그인 페이지가 다시 나옵니다.<a class=\"heading-anchor\" href=\"#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-just-brings-up-the-login-page-again-with-no-error-messages\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>로그인 쿠키가 재대로 설정되어 있지 않습니다.  Django가 전송한 도메인의 쿠키가 브라우저의 도메인과 일치하지 않기 때문입니다. <a class=\"reference internal\" href=\"/ko/4.0/ref/settings/#std-setting-SESSION_COOKIE_DOMAIN\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">SESSION_COOKIE_DOMAIN</span></code></a> 설정을 당신의 도메인과 맞게 설정해 주십시오. 만약 브라우저에서 가려고 하는 페이지가 “<a class=\"reference external\" href=\"https://www.example.com/admin/\">https://www.example.com/admin/</a>” 이라면 “SESSION_COOKIE_DOMAIN = ‘www.example.com’” 과 같이 설정해야 합니다.</p>\n</section>\n<section id=\"i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-brings-up-the-login-page-again-with-a-please-enter-a-correct-username-and-password-error\">\n<h2>로그인을 할 수 없습니다. 유효한 아이디와 패스워드를 입력해도 다시 로그인 페이지가 나오면서 “올바른 아이디와 패스워드를 입력해주세요” 에러가 나타납니다.<a class=\"heading-anchor\" href=\"#i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-brings-up-the-login-page-again-with-a-please-enter-a-correct-username-and-password-error\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>만약 입력하신 아이디와 패스워드가 확실히 올바르다면, 당신의 사용자 계정이 <a class=\"reference internal\" href=\"/ko/4.0/ref/contrib/auth/#django.contrib.auth.models.User.is_active\" title=\"django.contrib.auth.models.User.is_active\"><code class=\"xref py py-attr docutils literal notranslate\"><span class=\"pre\">is_active</span></code></a> 속성과 <a class=\"reference internal\" href=\"/ko/4.0/ref/contrib/auth/#django.contrib.auth.models.User.is_staff\" title=\"django.contrib.auth.models.User.is_staff\"><code class=\"xref py py-attr docutils literal notranslate\"><span class=\"pre\">is_staff</span></code></a> 속성이 True로 설정돼있는지 확인하십시오. 관리자 사이트는 두 필드가 모두 True인 유저에게만 접근을 허가합니다.</p>\n</section>\n<section id=\"how-do-i-automatically-set-a-field-s-value-to-the-user-who-last-edited-the-object-in-the-admin\">\n<h2>어떻게 자동으로 필드값을 관리자모드에서 마지막으로 대상을 편집한 이용자로 세팅하나요?<a class=\"heading-anchor\" href=\"#how-do-i-automatically-set-a-field-s-value-to-the-user-who-last-edited-the-object-in-the-admin\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p><code class=\"xref py py-class docutils literal notranslate\"><span class=\"pre\">save_model</span></code> 훅을 커스터미이징하면, 수정한 사용자를 반영한 객채를 업데이트 할 수 있습니다.  <a class=\"reference internal\" href=\"/ko/4.0/ref/contrib/admin/#model-admin-methods\"><span class=\"std std-ref\">the documentation on ModelAdmin methods</span></a>  예제를 보세요.</p>\n</section>\n<section id=\"how-do-i-limit-admin-access-so-that-objects-can-only-be-edited-by-the-users-who-created-them\">\n<h2>대상을 작성한 이용자만이 그것을 편집할 수 있도록 하기위해 어떻게 관리자 접근을 제한하나요?<a class=\"heading-anchor\" href=\"#how-do-i-limit-admin-access-so-that-objects-can-only-be-edited-by-the-users-who-created-them\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p><a class=\"reference internal\" href=\"/ko/4.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin\" title=\"django.contrib.admin.ModelAdmin\"><code class=\"xref py py-class docutils literal notranslate\"><span class=\"pre\">ModelAdmin</span></code></a> 또한 관리자 객체들의 시각적 효과와 수정 가능 여부를 조절할 수 있도록 하는 커스터마이제이션 훅들을 제공합니다. 요청으로부터 사용자를 추출해내는 같은 방식으로, <a class=\"reference internal\" href=\"/ko/4.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_queryset\" title=\"django.contrib.admin.ModelAdmin.get_queryset\"><code class=\"xref py py-meth docutils literal notranslate\"><span class=\"pre\">get_queryset()</span></code></a> 와 <a class=\"reference internal\" href=\"/ko/4.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.has_change_permission\" title=\"django.contrib.admin.ModelAdmin.has_change_permission\"><code class=\"xref py py-meth docutils literal notranslate\"><span class=\"pre\">has_change_permission()</span></code></a>를 사용하여 관리자 객체들의 시각적 효과와 수정 가능 여부를 조작할 수 있습니다.</p>\n</section>\n<section id=\"my-admin-site-css-and-images-showed-up-fine-using-the-development-server-but-they-re-not-displaying-when-using-mod-wsgi\">\n<h2>내 관리자 사이트의 CSS와 이미지들이 개발 서버에서는 잘 보여지지만 mod_wsgi를 이용할 때는 재대로 보여지지 않습니다.<a class=\"heading-anchor\" href=\"#my-admin-site-css-and-images-showed-up-fine-using-the-development-server-but-they-re-not-displaying-when-using-mod-wsgi\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>See <a class=\"reference internal\" href=\"/ko/4.0/howto/deployment/wsgi/modwsgi/#serving-the-admin-files\"><span class=\"std std-ref\">serving the admin files</span></a>\nin the “How to use Django with mod_wsgi” documentation.</p>\n</section>\n<section id=\"my-list-filter-contains-a-manytomanyfield-but-the-filter-doesn-t-display\">\n<h2>저의 “list_filter”가 ManyToManyField를 가지고 있습니다. 그런데 필터에서 나타나지 않습니다.<a class=\"heading-anchor\" href=\"#my-list-filter-contains-a-manytomanyfield-but-the-filter-doesn-t-display\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Django won’t bother displaying the filter for a <code class=\"docutils literal notranslate\"><span class=\"pre\">ManyToManyField</span></code> if there\nare no related objects.</p>\n<p>For example, if your <a class=\"reference internal\" href=\"/ko/4.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_filter\" title=\"django.contrib.admin.ModelAdmin.list_filter\"><code class=\"xref py py-attr docutils literal notranslate\"><span class=\"pre\">list_filter</span></code></a>\nincludes <a class=\"reference internal\" href=\"/ko/4.0/ref/contrib/sites/\"><span class=\"doc\">sites</span></a>, and there are no sites in your\ndatabase, it won’t display a “Site” filter. In that case, filtering by site\nwould be meaningless.</p>\n</section>\n<section id=\"some-objects-aren-t-appearing-in-the-admin\">\n<h2>몇몇 개체가 관리자 페이지에서 표시되지 않습니다.<a class=\"heading-anchor\" href=\"#some-objects-aren-t-appearing-in-the-admin\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>일정하지 않은 행 갯수는 외래키 값을 빠트리거나 외래키 필드를 <a class=\"reference internal\" href=\"/ko/4.0/ref/models/fields/#django.db.models.Field.null\" title=\"django.db.models.Field.null\"><code class=\"xref py py-attr docutils literal notranslate\"><span class=\"pre\">null=False</span></code></a>으로 잘못 설정한 경우 발생할 수 있습니다. 만약 <a class=\"reference internal\" href=\"/ko/4.0/ref/models/fields/#django.db.models.ForeignKey\" title=\"django.db.models.ForeignKey\"><code class=\"xref py py-class docutils literal notranslate\"><span class=\"pre\">ForeignKey</span></code></a>가 존재하지 않는 객체를 가리키고있는 레코드가 있는데, 그 외래키가 <a class=\"reference internal\" href=\"/ko/4.0/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display\" title=\"django.contrib.admin.ModelAdmin.list_display\"><code class=\"xref py py-attr docutils literal notranslate\"><span class=\"pre\">list_display</span></code></a>에 포함되어 있다면, 해당 래코드는 관리자 변경리스트에 보이지 않을것입니다. 왜냐하면, 장고모델은 데이터베이스 단계에는 설정되어 있지 않은무결성 제약조건을 가지고 있기 때문입니다.</p>\n</section>\n<section id=\"how-can-i-customize-the-functionality-of-the-admin-interface\">\n<h2>어떻게 관리 인터페이스의 기능을 커스터마이즈 할 수 있습니까?<a class=\"heading-anchor\" href=\"#how-can-i-customize-the-functionality-of-the-admin-interface\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>여러분은 여러 옵션을 가지고 있습니다. 만약 여러분이 Django가 자동적으로 만드는 추가/변경 폼에 업혀가고 싶다면 임의의 자바스크립트 모듈을 모델의 클래스 Admin <a class=\"reference internal\" href=\"/ko/4.0/ref/contrib/admin/#modeladmin-asset-definitions\"><span class=\"std std-ref\">js parameter</span></a>를 통해서 페이지에 추가할 수 있습니다. 그 파라미터는 문자열인 URL 목록이고 &lt;script&gt;태그를 통한 관리자 폼에 추가될 자바스크립트 모듈을 가리키고 있습니다.</p>\n<p>자동으로 생성된 폼보다 더 유연성 있는 폼을 원한다면 관리자를 위한  커스텀 사용자뷰를 작성하셔도 좋습니다. 관리자모드는 장고 자체에서 스스로 지원하며 인증시스템을 잠그거나 권한을 확인하는 등 필요로 하는 커스텀뷰를 작성하실 수 있습니다.</p>\n<p>만약 관리자 인터페이스의 룩앤필을 커스터마이징 하기를 원한다면, 다음 질문을 읽으세요.</p>\n</section>\n<section id=\"the-dynamically-generated-admin-site-is-ugly-how-can-i-change-it\">\n<h2>동적 관리자 사이트가 못 생겼어요. 어떻게 변경을 할 수 있나요?<a class=\"heading-anchor\" href=\"#the-dynamically-generated-admin-site-is-ugly-how-can-i-change-it\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>우리는 좋아하지만, 당신은 그렇지 않다면 CSS 그리고/또는 연관된 이미지 파일들을 수정하여서 관리자 사이트의 모습을 변경할 수 있습니다. 관리자 사이트는 시맨틱 HTML 그리고 다수의 CSS 훅들로 만들어져 있어 스타일시트를 수정하여 원하는 변경사항을 적용할 수 있을 것입니다.</p>\n</section>\n<section id=\"what-browsers-are-supported-for-using-the-admin\">\n<span id=\"admin-browser-support\"></span><h2>관리자 사이트는 어떤 브라우저들을 지원하나요?<a class=\"heading-anchor\" href=\"#what-browsers-are-supported-for-using-the-admin\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>관리자는 최신 버전의 웹 표준을 준수하는 브라우저의 완전한 기능을 제공합니다. 데스크탑에서 크롭, 엣지, 파이어폭스, 오페라, 사파리 등을 이용할 수 있습니다.</p>\n<p>모바일과 테블릿 기기에서 관리자는 웹 표준을 준수하는 브라우저에게 반응형 환경을 제공합니다.  안드로이드와 IOS의 대부분의 브라우저에서 사용할 수 있습니다.</p>\n<p>지원 기능에 따라 브라우저 별로 스타일요소의 차이점이 있을 수 있습니다.  이런것들은 렌더링 과정에서 수정가능한 변형들입니다.</p>\n</section>","rootId":"faq-the-admin","toc":[{"title":"유효한 아이디와 패스워드를 입력해도 로그인을 할 수 없습니다. 아무 오류메시지 없이 로그인 페이지가 다시 나옵니다.","anchor":"i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-just-brings-up-the-login-page-again-with-no-error-messages","children":[]},{"title":"로그인을 할 수 없습니다. 유효한 아이디와 패스워드를 입력해도 다시 로그인 페이지가 나오면서 “올바른 아이디와 패스워드를 입력해주세요” 에러가 나타납니다.","anchor":"i-can-t-log-in-when-i-enter-a-valid-username-and-password-it-brings-up-the-login-page-again-with-a-please-enter-a-correct-username-and-password-error","children":[]},{"title":"어떻게 자동으로 필드값을 관리자모드에서 마지막으로 대상을 편집한 이용자로 세팅하나요?","anchor":"how-do-i-automatically-set-a-field-s-value-to-the-user-who-last-edited-the-object-in-the-admin","children":[]},{"title":"대상을 작성한 이용자만이 그것을 편집할 수 있도록 하기위해 어떻게 관리자 접근을 제한하나요?","anchor":"how-do-i-limit-admin-access-so-that-objects-can-only-be-edited-by-the-users-who-created-them","children":[]},{"title":"내 관리자 사이트의 CSS와 이미지들이 개발 서버에서는 잘 보여지지만 mod_wsgi를 이용할 때는 재대로 보여지지 않습니다.","anchor":"my-admin-site-css-and-images-showed-up-fine-using-the-development-server-but-they-re-not-displaying-when-using-mod-wsgi","children":[]},{"title":"저의 “list_filter”가 ManyToManyField를 가지고 있습니다. 그런데 필터에서 나타나지 않습니다.","anchor":"my-list-filter-contains-a-manytomanyfield-but-the-filter-doesn-t-display","children":[]},{"title":"몇몇 개체가 관리자 페이지에서 표시되지 않습니다.","anchor":"some-objects-aren-t-appearing-in-the-admin","children":[]},{"title":"어떻게 관리 인터페이스의 기능을 커스터마이즈 할 수 있습니까?","anchor":"how-can-i-customize-the-functionality-of-the-admin-interface","children":[]},{"title":"동적 관리자 사이트가 못 생겼어요. 어떻게 변경을 할 수 있나요?","anchor":"the-dynamically-generated-admin-site-is-ugly-how-can-i-change-it","children":[]},{"title":"관리자 사이트는 어떤 브라우저들을 지원하나요?","anchor":"what-browsers-are-supported-for-using-the-admin","children":[]}],"breadcrumbs":[{"docname":"faq/index","title":"장고 자주묻는 질문","url":"/ko/4.0/faq/"}],"prev":{"docname":"faq/models","title":"자주 묻는 질문: 데이터베이스와 모델","url":"/ko/4.0/faq/models/"},"next":{"docname":"faq/contributing","title":"자주 묻는 질문 : 코드에 기여하기","url":"/ko/4.0/faq/contributing/"},"formats":{"html":"/ko/4.0/faq/admin/","markdown":"/ko/4.0/faq/admin.md","json":"/ko/4.0/faq/admin.json"},"source":"https://github.com/django/django/blob/stable/4.0.x/docs/faq/admin.txt","official":"https://docs.djangoproject.com/ko/4.0/faq/admin/","inVersions":["6.1","6.0","5.2","5.1","5.0","4.2","4.1","4.0","3.2","3.1","3.0","2.2","2.1","2.0","1.11"],"inLocales":["en","zh-hans","fr","ja","id","it","pt-br","ko","es","el","pl"]}