Àå°í Á¶Á÷

DjangoÀÇ ±×·ì °èÁ¤
Áö±Ý ´Ù¿î·Îµå

Àå°í Á¶Á÷ ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • BSD License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Ben Lopatin
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • https://github.com/bennylope/

Àå°í Á¶Á÷ ű×


Àå°í Á¶Á÷ ¼³¸í

Django-Organizations´Â Django ÇÁ·ÎÁ§Æ®¿¡ »ç¿ëÀÚ °ü¸®, ´ÙÁß »ç¿ëÀÚ ±×·ìÀ» Ãß°¡ÇÏ´Â Django ÀÀ¿ë ÇÁ·Î±×·¥ÀÔ´Ï´Ù. Django-Organizations¸¦ »ç¿ëÇϽʽÿÀ. »çÀÌÆ®¿¡ ¼Ò¼È ±×·ì ¶Ç´Â ´ÙÁß »ç¿ëÀÚ °èÁ¤ °³Ã¼¿Í °°Àº ±â´ÉÀÌ ÇÊ¿äÇÑ Á¶Á÷ÀÌ ÇÊ¿äÇÑÁö ¿©ºÎ¸¦ »ç¿ëÇÏµç °³º° »ç¿ëÀÚ¸¦ ÃÊ°úÇÏ¿© °èÁ¤ ¹× ±¸µ¶ ±â´ÉÀ» Á¦°ø ÇÒ ¼ö ÀÖ´ÂÁö ¿©ºÎ .- django.contrib.auth¿¡ ÀÇÁ¸ÇÏ°í Ãß°¡ »ç¿ëÀÚ ¶Ç´Â ÀÎÁõ ±â´ÉÀÌ Ãß°¡µÇ°Å³ª ÇÊ¿äÇÏÁö ¾Ê½À´Ï´Ù. - »ç¿ëÀÚ´Â Çϳª ÀÌ»óÀÇ Á¶Á÷ (°èÁ¤, ±×·ì) - ÃÊ´ëÀå ¹× µî·Ï ±â´ÉÀÌ ±âÁ¸ ÃÊ´ëÀå ¹× µî·Ï AppSinstallingFirst¸¦ ÅëÇÕ ÇÒ ¼ö ÀÖµµ·Ï À¯¿¬Çϵµ·Ï ¼³°èµÇ¾ú½À´Ï´Ù. ÀÀ¿ë ÇÁ·Î±×·¥À» Python °æ·Î¿¡ Ãß°¡ ÇÒ ¼ö ÀÖµµ·Ï À¯¿¬ÇÏ°Ô ¼³°èµÇ¾ú½À´Ï´Ù. °¡Àå ½¬¿î ¹æ¹ýÀº PIP¸¦ »ç¿ëÇÏ´Â °ÍÀÔ´Ï´Ù : PIP ¼³Ä¡ Django-OrganizationsYou ¼Ò½º ¹× ½ÇÇàÁßÀÎ ¼Ò½º¸¦ ´Ù¿î·ÎµåÇÏ¿© ¼³Ä¡ÇؾßÇÕ´Ï´Ù. python setup.py installConfigure°¡ ¼³Ä¡µÇ¾î ÀÖ°í Á¶Á÷ ÀÀ¿ë ÇÁ·Î±×·¥À» installed_apps = ( ... 'django.contrib.auth', 'Á¶Á÷',) ÇÁ·ÎÁ§Æ® URL conf°¡ ¾÷µ¥ÀÌÆ®µÇ¾ú´ÂÁö È®ÀÎÇϽʽÿÀ. ÁÖ¿ä ÀÀ¿ë ÇÁ·Î±×·¥ URL CONC ¹× ¼±ÅÃÇÑ ÃÊ´ëÀå ¹é¿£µå URLÀ» ÀÔ·ÂÇؾßÇÕ´Ï´Ù. Organizations.Backends °¡Á® ¿À±â ÃÊ´ëÀå _backendurlpatterns = ÆÐÅÏ ( '', ... URL (R '^ Accounts /', Æ÷ÇÔ ( 'Organizations.URL)) ), URL (r '^ ÃÊ´ëÀå / Æ÷ÇÔ, Æ÷ÇÔ (invition_backend ())),) ÇÁ·ÎÁ§Æ® ¼³Á¤¿¡¼­ ´Ù¸¥ ÃÊ´ëÀå ¹é¿£µå¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖÀ¸¸ç, invitation_backend ÇÔ¼ö´Â ÇØ´ç ¹é¿£µå·Î Á¤ÀÇ µÈ URLÀ» Á¦°øÇÕ´Ï´Ù. orgs_invitation_backend = 'myApp.Backends.MyInvitationBackend'usage ´ëºÎºÐÀÇ »ç¿ë »ç·Ê´Â ±âº» URL Conf ÆÄÀÏÀ» Á÷Á¢ »ç¿ëÇÏ´Â ¾Û ºä¸¦ Á÷Á¢ Æ÷ÇÔ½ÃÅ°±â¿¡ ÃæºÐÇؾßÇÕ´Ï´Ù. ±âº» ºä¸¦ È®ÀåÇÏ¿© ±â´ÉÀ̳ª ¾×¼¼½º Á¦¾î¸¦ »ç¿ëÀÚ Á¤ÀÇ ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¼¼ ¸ðµ¨ : - Á¶Á÷ ±×·ì °´Ã¼ÀÔ´Ï´Ù. ÀÌ°ÍÀº ÀÚ½ÅÀÇ ¾ÛÀÇ ±â´ÉÀ» ¿¹¸¦ µé¸é¼­ ¿¬°ü½ÃÅ°´Â °ÍÀÔ´Ï´Ù. ±¸µ¶, ÀúÀå¼Ò, ÇÁ·ÎÁ§Æ® µî - Á¶Á÷ ¸ðµ¨°ú »ç¿ëÀÚ ¸ðµ¨ °£ÀÇ ManyTomany °ü°è¸¦À§ÇÑ »ç¿ëÀÚ Á¤ÀÇ »ç¿ëÀÚ Á¤ÀÇ. Á¶Á÷°ú °ü·ÃµÈ »ç¿ëÀÚ¿¡ ´ëÇÑ Ãß°¡ Á¤º¸¸¦ ÀúÀåÇÏ°í Á¶Á÷ ¼ÒÀ¯±Ç¿¡ ´ëÇÑ Æí¸®ÇÑ ¸µÅ©¸¦ Á¦°øÇÕ´Ï´Ù .- Á¶Á÷ÀÇ »î°ú »ç¸Á¿¡ ´ëÇÑ ±Ç¸®¸¦ °¡Áø »ç¿ëÀÚ¿¡°Ô Á¶Á÷ ¼ÒÀ¯ÀÚ. ÀÌ°ÍÀº Á¶ÀÛ±º ¸ðµ¨°úÀÇ °ü°è°¡ ÇϳªÀÇ °ü°èÀÔ´Ï´Ù. À̸¦ ÅëÇØ »ç¿ëÀÚ ¿ÀºêÁ§Æ®´Â ¿©·¯ Á¶Á÷À» ¼ÒÀ¯ÇÏ°í Á¶Á÷ÀÇ ±¸¼º¿ø ³»¿¡¼­ ¼ÒÀ¯±ÇÀ» ½±°Ô ½ÃÇà ÇÒ ¼ö ÀÖ½À´Ï´Ù. >>> chris = user.objects.get (username = "chris") >>> SoundGarden = create_organization (chris, "soundgarden") >>> soundgarden.is_user (chris) true >>> soundgarden.is_admin (chris) true >>> soundgarden.owner.organization_user >>> SoundGarden.Owner.organization_user .user >>> >>> AudiosLave = create_orgiosization (Å©¸®½º, "AudioSlave") >>> tom = user.objects.get (username = "tom") >>> AudiosLave.add_user (Åè, is_admin) = true) Overvieweach Excialogive Emoors´Â ÇϳªÀÇ ¼ÒÀ¯ÀÚ ¸¸ °¡Áú ¼ö ÀÖÁö¸¸ »çÀÌÆ® »ç¿ëÀÚ´Â ¿©·¯ Á¶Á÷ÀÇ ±¸¼º¿ø ÀÏ ¼ö Àְųª ¿©·¯ Á¶Á÷À» ¼ÒÀ¯ ÇÒ ¼ö ÀÖ½À´Ï´Ù. Á¶Á÷°ú »ç¿ëÀÚ °¡ÀÌ Á¦Ç°ÀÇ È¨ÆäÀÌÁö¸¦ Çã¿ë ÇÒ ¼ö ÀÖµµ·Ï Á¶Á÷°ú »ç¿ëÀÚ »çÀÌÀÇ Áß°³Àڷμ­ÀÇ Á¶ÀÛ »ç¿ëÀÚ ¸ðµ¨ ¼­¹ö


Àå°í Á¶Á÷ °ü·Ã ¼ÒÇÁÆ®¿þ¾î

Django-libs.

»ç¿ëÀÚ Á¤ÀÇ middlewares, testrunner,¿Í °°Àº ¸ðµç django ÇÁ·ÎÁ§Æ®¿¡¼­ Àç»ç¿ëÇÏ´Â °ÍµéÀÇ Ä÷º¼Ç ... ...

61

´Ù¿î·Îµå