Django-notes. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Colin Powell
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://onecardinal.com
Django-notes. ű×
Django-notes. ¼³¸í
¸ðµ¨¿¡ ¸Þ¸ð¸¦ Ãß°¡ÇϽʽÿÀ Django-notes´Â ¸Þ¸ð¸¦ ¸ðµ¨¿¡ ÷ºÎ ÇÒ ¼öÀÖ´Â °£´ÜÇÑ Django ¾ÛÀÔ´Ï´Ù. ¼³Ä¡´Â ±âº»ÀûÀ¸·Î ¸ðµ¨¿¡ ÀϹÝÀûÀÎ °ü°è Ç׸ñÀ» Ãß°¡ÇÏ´Â °Í°ú °°½À´Ï´Ù .1. install_apps variable2¿¡ 'notes'¸¦ Ãß°¡ÇϽʽÿÀ. ³ëÆ® ¸ðµ¨ °¡Á® ¿À±â : Notes.models °¡Á® ¿À±â Note3. note.py ÆÄÀÏ¿¡¼ ModelÀÇ Admin DEF¿¡ ³ëÆ®¸¦ ÀζóÀÎÀ¸·Î Ãß°¡ÇϽʽÿÀ. notes.admin °¡Á® ¿À±â NoteInlineLine Ŭ·¡½º yourModelAdmin (admin.modeladmin) : inlines = 4. ½¬¿î °ü¸®¸¦ »ç¿ëÇÏ·Á¸é ¸ðµ¨¿¡ ÈÄÅ©¸¦ Ãß°¡ ÇÒ ¼ö ÀÖ½À´Ï´Ù. notes = generic.genericRelation (Âü°í) UsageFollow À§ÀÇ ´Ü°è (4 °³ Æ÷ÇÔ)¿Í instance_of_yourmodel.notes_set.all ()ÀÇ ¸ðµç ³ëÆ®¿¡ ¾×¼¼½ºÇؾßÇÕ´Ï´Ù. >>> object = yourmodel.objects.get (pk = 1) >>> notes_for_object = object.notes_set.all () ´Ü¼ø. ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽㠡¤ Àå°í
Django-notes. °ü·Ã ¼ÒÇÁÆ®¿þ¾î