Àå°í - ¹¦»ç

Django ÀÀ¿ë ÇÁ·Î±×·¥ ÇÁ·ÎÆÄÀÏ ¸µ Åø¸µ, David Cramer¿¡¼­ ¿µ°¨À» ¾òÀº
Áö±Ý ´Ù¿î·Îµå

Àå°í - ¹¦»ç ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • BSD License
  • °Ô½ÃÀÚ À̸§:
  • Travis Chase and Rob Madole
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://localbase.com

Àå°í - ¹¦»ç ű×


Àå°í - ¹¦»ç ¼³¸í

Django ÀÀ¿ë ÇÁ·Î±×·¥ ÇÁ·ÎÆÄÀÏ ¸µ Åø¸µ, David Cramer¿¡¼­ ¿µ°¨À» ¾òÀº Django-depictionÀº Django ÀÀ¿ë ÇÁ·Î±×·¥À» ÇÁ·ÎÆÄÀÏ ¸µÇϱâÀ§ÇÑ Ç÷¯±×ÀÎÀÔ´Ï´Ù. Django ÀÀ¿ë ÇÁ·Î±×·¥ Áß ÇϳªÀÇ ¼º´ÉÀ» Çâ»ó½ÃÅ°´Â °Í¿¡ µû¶ó ÇÁ·ÎÆÄÀÏ ¸µ µµ±¸¸¦ ã°íÀÖ¾ú½À´Ï´Ù. ¿ì¸®´Â ¿ì¸®ÀÇ Æ®¸®°Å¸¦ Æ®¸³ ÇÑ °ÍÀ¸·Î ãÁö ¸øÇß½À´Ï´Ù. ÀÌ·¸°Ô ¸¸µé¾úÀ¸¹Ç·Î ÀÌÁ¦´Â ÀϺΠÇÁ·ÎÇÊ µ¥ÀÌÅ͸¦ ½Å¼ÓÇÏ°Ôº¸°í ¼±ÅÃÀûÀ¸·Î kcachegrind.installationyou¿¡¼­º¸±â¿¡ ÀûÇÕÇÑ .kgrind ÆÄÀÏÀ» ½Å¼ÓÇÏ°Ô ³»º¸³¾ ¼ö ÀÖ½À´Ï´Ù. ÀÌ ÀåÁ¡ÀÌ ÀÛµ¿Çϱâ À§ÇØ Django°¡ ÇÊ¿äÇÕ´Ï´Ù. PIP ¼³Ä¡ Django-depictor : PIP ¼³Ä¡ : GIT + HTTP : //github.com/robmadole/django-depictionsettingsedit Django ¼³Á¤, middleware_classes.middleware_classes = (... 'depiction.middleware.profilermiddleware.profilermiddleware' Äõ¸® ¹®ÀÚ¿­¿¡ ÇÁ·ÎÆÄÀÏÀ» Ãß°¡ÇÏ¿© Ãâ·ÂÀ» Æ®¸®°ÅÇÕ´Ï´Ù. ¿¹¸¦ µé¾î,ÀÌ PageHTTP : //127.0.0.1 : 8000 / Lumberjacks / list¿¡ ´ëÇÑ ÇÁ·ÎÆÄÀÏ µ¥ÀÌÅ͸¦ ¾òÀ¸½Ê½Ã¿À. , thisHttp : //127.0.0.1 : 8000 / lumberjacks / list? filenamehttp : //127.0.0.1 : 8000 / lumberjacks / list? playsdressup = truprof = django / templateto ÆÄÀÏÀ» ¾òÀ¸½Ê½Ã¿À. kgrind filehttp : //127.0.0.1 : 8000 / lumberjacks / list? profgrindnote : ±³¼ö°¡ ¼³Á¤µÇ¾î ÀÖ¾î¾ßÇÕ´Ï´Ù. ÀÌ°ÍÀº KCacheGrind¸¦ »ç¿ëÇÒ ÇÁ·ÎÆÄÀÏ µ¥ÀÌÅÍÀÇ "´Ù¸¥ À̸§À¸·Î ÀúÀå .."ÆÄÀÏ ´Ù¿î·Îµå¸¦ Æ®¸®°ÅÇÕ´Ï´Ù. KCGRIND FileStere´Â ÇÁ·ÎÇÊ µ¥ÀÌÅ͸¦ ºÐ¼®ÇϱâÀ§ÇÑ GUI¸¦ Á¦°øÇÏ´Â KCaChegrind¶ó´Â ÇÁ·ÎÁ§Æ®ÀÔ´Ï´Ù. KCachegrind°¡ ¼³Ä¡µÇ¾î ÀÖÁö¸¸ Àϴܺ¸±â À§Çؼ­´Â .kgrind ÆÄÀÏÀÌ ÇÊ¿äÇϸé Decorator ·ÎÀÌ ÀÛ¾÷À» ¼öÇà ÇÒ ¼ö ÀÖ½À´Ï´Ù. ´ÙÀ½Àº django view example.from django.template.loader °¡Á® ¿À±â render_to_responsefrom depiction.DoTo_ResponseFrom depiction.Decorator °¡Á® ¿À±â kgrindfrom lumberjacks.models °¡Á® ¿À±â * @ kgrind ( 'listing_lumberjacks.kgrind') def list_lumberjacks (¿äû) : retence_to_response ( 'lumberjacks / list.html') , {men ': lumberjacks.objects.all ()}) ÇöÀç ÀÛ¾÷ µð·ºÅ丮¿¡ listing_lumberjacks.kgrind ÆÄÀÏÀ» ¸¸µì´Ï´Ù. ±×·± ´ÙÀ½ ÀÌ°ÍÀ» KCacheGrind¿¡·Îµå ÇÒ ¼ö ÀÖ½À´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽㠡¤ Àå°í ÀÌ ¸±¸®½º¿¡¼­´Â »õ·Î¿î ±â´É : ¡¤ Äõ¸® ¹®ÀÚ¿­·Î KGRIND ÆÄÀÏÀ» ´Ù¿î·ÎµåÇÏ´Â ±â´ÉÀ» Ãß°¡ÇÕ´Ï´Ù.


Àå°í - ¹¦»ç °ü·Ã ¼ÒÇÁÆ®¿þ¾î