| Django Fouls. »ç¿ëÀÚ°¡ Django ¸ðµ¨ °´Ã¼¸¦ µû¸¦ ¼öÀÖ´Â Django ÀÀ¿ë ÇÁ·Î±×·¥ |
Áö±Ý ´Ù¿î·Îµå |
Django Fouls. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Evgeny Fadeev
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://askbot.org
Django Fouls. ű×
Django Fouls. ¼³¸í
Django ¸ðµ¨ °´Ã¼¸¦ µû¸¦ ¼öÀÖ´Â Django ÀÀ¿ë ÇÁ·Î±×·¥ Django-FollowItÀº »çÀÌÆ® »ç¿ëÀÚ°¡ Django Model Objects.setupto¿¡ Ç¥½ÃµÈ »çÀÌÆ®¿¡¼ ´Ù¾çÇÑ ÀÛ¾÷À» ¼öÇà ÇÒ ¼öÀÖ´Â ±â´ÉÀ» ½±°Ô ¼³Á¤ÇÒ ¼öÀÖ´Â Django ¾ÛÀÔ´Ï´Ù. Setupto installation_apps Entry add entry 'ouch'sport '¸¦ Ãß°¡ÇϽʽÿÀ. ±×·± ´ÙÀ½ ÆÄÀÏÀÇ ³¡¿¡¼ AppsÀÇ models.py¿¡¼ ´ÙÀ½À» Ãß°¡ÇϽʽÿÀ. ´ÙÀ½À» Ãß°¡ÇϽʽÿÀ. ½© ½ÇÇà : Python Manage.py SyncDbNot »ç¿ëÀÚ°¡ »ç¿ëÀÚ¿¡°Ô °¡´ÉÇÕ´Ï´Ù. SomeModelÀÇ ÀνºÅϽº¸¦ µû¸£·Á¸é ´Ù¸¥ ¸ðµ¨À» µû¸£±â·Î °áÁ¤ÇÑ ´ÙÀ½ Models.py¿¡ FollowIt.Register (...) ¹®À» Ãß°¡ÇÏ°í ¾Æ·¡¿¡¼ syncdb.usageExamples¸¦ ´Ù½Ã ½ÇÇàÇϽʽÿÀ. ¾Æ·¡¿¡¼ »ç¿ëÇÏ´Â ¹æ¹ýÀ» º¸¿©ÁÝ´Ï´Ù (±× ¸ðµ¨·Î °¡Á¤ ´ç½ÅÀÇ ¸ðµ¨¿¡¼ FoulsIt¿¡ µî·ÏµË´Ï´Ù. Bob.Follow_thing (x) bob.unfollow_thing (x) things = bob.get_followed_things () x_followers = x.get_followers () FoulsIT´Â ¾ÆÁ÷ URL ¶ó¿ìÆà °ü·Ã ±â´ÉÀ» Á¦°øÇÏÁö ¾Ê½À´Ï´Ù. ´ÙÀ½°ú °°Àº Ç׸ñÀ̳ª ÅÛÇø´ ű׸¦ µû¸£Áö ¾Êµµ·ÏÇϽʽÿÀ. ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽㠡¤ Àå°í
Django Fouls. °ü·Ã ¼ÒÇÁÆ®¿þ¾î