Django-impersonate.

¼öÆÛ À¯Àú°¡ ´Ù¸¥ »ç¿ëÀÚ¸¦ °¡Àå ÇÒ ¼ö ÀÖµµ·Ï Django ¾Û
Áö±Ý ´Ù¿î·Îµå

Django-impersonate. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • BSD License
  • °Ô½ÃÀÚ À̸§:
  • Peter Sanchez
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://bitbucket.org/petersanchez/webutils/

Django-impersonate. ű×


Django-impersonate. ¼³¸í

¼öÆÛ À¯Àú°¡ ´Ù¸¥ »ç¿ëÀÚ¸¦ °¡Àå ÇÒ ¼ö ÀÖµµ·Ï Django ¾Û Django-impersonate´Â Superusers¸¦ "impersonate"´Ù¸¥ ºñ ¼öÆÛ À¯Àú °èÁ¤À¸·Î Çã¿ëÇÏ´Â °£´ÜÇÑ Django ¾ÛÀÔ´Ï´Ù. Python 2.4+ ¹× Django 1.2.4 ¿ëÀ¸·Î ÀÛ¼ºµÇ¾úÁö¸¸ Django 1.1 + .It´Â ±ÍÇÏÀÇ ÇÁ·ÎÁ§Æ®¿¡ µû¶ó ´Ù¸¨´Ï´Ù. django.contrib.session framework.installation : pip : pip ¼³Ä¡ django-impersonatebasic ¼öµ¿ ¼³Ä¡ : python setup.py ºôµå sudo python setup.py installaternative ¼³Ä¡ (¼öµ¿) : ÆÄÀ̽㠰æ·Î¿¡ µð·ºÅ丮¸¦ °¡ÀåÇϽʽÿÀ. Python¿¡¼­ »çÀÌÆ® ÆÐÅ°Áö µð·ºÅ丮¸¦ ¼³Ä¡Çϰųª $ PythonPath ȯ°æ º¯¼ö¸¦ ¼³Á¤ÇÏ¿© WebUtils µð·ºÅ丮°¡ lives.usage : 1) 'impersonate'¸¦ adminest_apps2¿¡ Ãß°¡ÇÕ´Ï´Ù.) middleware_classes3¿¡ 'impersonate.middleware.impersonateMiddleware'Ãß°¡) URL ±¸Á¶ÀÇ ¾îµò°¡¿¡ 'impersonate.urls'¸¦ Ãß°¡ÇϽʽÿÀ. ¿¹ : URLPATTERNS = ÆÐÅÏ ( '', URL (r '^ admin /', include (admin.site.urls)), URL (r '^ impersonate /', Æ÷ÇÔ ( 'impersonate.urls'Æ÷ÇÔ)), ... (¿©±â¿¡ÀÖ´Â ´Ù¸¥ ¸ðµç URL) ...) ´ÙÀ½ °æ·Î°¡ ´ÙÀ½ °æ·Î¸¦ ÀûÀýÈ÷ ½á¼­ ´Ù¸¥ »ç¿ëÀÚ¸¦ °¡Àå ÇÒ ¼ö ÀÖ½À´Ï´Ù. / impersonate / / ¹Ù²Ù±â ¹Ù²Ù±â »ç¿ëÀÚÀÇ »ç¿ëÀÚ ID·Î »ç¿ëÀÚ ID¸¦ »ç¿ëÇϽʽÿÀ. °¡Àå "¸ðµå"¿¡¼­ request.user °´Ã¼¿¡´Â "_IMPersonate"¼Ó¼ºÀÌ true·Î ¼³Á¤µË´Ï´Ù. µû¶ó¼­ ÅÛÇø´À̳ª ºä¸¦ üũÀÎÇÏ°í ½Í´Ù¸é, ´ç½ÅÀº {% user._impersonate %} .... {% endif %} {% endif %}ÀÌ URLÀ» reverse () ¶Ç´Â {% %·Î ÂüÁ¶ ÇÒ ¼ö ÀÖ½À´Ï´Ù. URL %} ÅÛÇø´ ÅÂ±× 'impersonate-start'to aspersonation Á¦°Å, ´ÙÀ½ °æ·Î¸¦ Á¦°ÅÇϽʽÿÀ. / impersonate / stop / reverse () ¶Ç´Â {% URL %} ÅÛÇø´ ÅÂ±× ·ÎÀÌ URLÀ»'impersonate-stop '·Î ÂüÁ¶ÇϽʽÿÀ. ¿ä±¸ »çÇ× : ¡¤ Àå°í ¡¤ ÆÄÀ̽ã


Django-impersonate. °ü·Ã ¼ÒÇÁÆ®¿þ¾î