å¤ããã©ãããã¾ãããå 容ãªã®ã§åæã«ç¿»è¨³ãã¾ãã誤訳ãããã°æ¯éãææãã ãããã¹ã©ã¤ãè³æã®ç¿»è¨³ãªã®ã§ãæµãããããã¥ããå ´åã¯æ¯éãå åç»ãè¦ãªããã©ããã DjangoCon 2008 Reusable Apps http://www.youtube.com/watch?v=A-S0tqpPga4 PDF http://media.b-list.org/presentations/2008/pycon/reusable_apps.pdf 4ã¤ã®éç ã²ã¨ã¤ã®ãã¨ããã¾ããã è¤æ°ã¢ããªã«ãããã¨ãæãã㪠æè»ããèæ ®ãã¦ä½ã é å¸ã®ãã¨ãèãã¦ä½ã ãã®1 ãã²ã¨ã¤ã®ãã¨ããã¾ãããã -- UNIX å²å¦ ã¢ããªã±ã¼ã·ã§ã³ == ã«ãã»ã«å ã±ã¼ã¹ã¹ã¿ãã£ï¼ã¦ã¼ã¶ã¼ç»é² ä»æ§ ã¦ã¼ã¶ã¼ããã©ã¼ã ããç»é²ããã¨æå¹åããã¦ããªãã¢ã«ã¦ã³ããä½æããã ã¦ã¼ã¶ã¼ããªã³ã¯ãè¨è¼ãã
ä»åã¯ã Djangoã®ãä½æ°´æºã®ãã£ãã·ã¥ APIãã使ã£ã¦ã ãã£ãã·ã¥ãåããã¨ã«ãã¦ã¿ãã ããæ群ã«è¯ããªã å¿ è¦ãªé¨åï¼ãµã¤ããã¼ãã¡ã¤ã³é¨åã®ä¸é¨ãªã©ï¼ããªãã¸ã§ã¯ã丸ãã¨ãã£ãã·ã¥ãã¦ãã£ããã¨ã è²ã åºæ¥ãã åã¦ã¼ã¶ã¼ãã¨ã«ãã¼ã¸ãããå ´åãªããã¯ã ãã®ã¦ã¼ã¶ã¼ãã¨ã«ãã£ãã·ã¥ãåãããã«ãã¦ããããªãã¦äºããã£ã¦ã¿ãã ä»åã¯ãã¼ã«ã«ã¡ã¢ãªä¸ã«æ®ãã®ããã£ã¦ã¿ãã ã¾ãã¯ã settings.pyã«ä»¥ä¸ãå ããã [python]CACHE_BACKEND = âlocmem:///'[/python] Djangoãªã³ã©ã¤ã³ããã¥ã¡ã³ãå訳ã«è¼ã£ã¦ãããã ãã®ãã£ãã·ã¥ã¯ãã«ãããã»ã¹ã»ã¼ããã¤ã¹ã¬ããã»ã¼ã è¯ããã¼ã 次ã«ãã£ãã·ã¥ãå®éã«ä¿åããé¨å ä»åã¯å ¨ã¦views.pyã§è¡ã£ãã [python]from django.core.cache imp
ããã§ã¯Mercurialã®ã³ãã³ããhgã«ã¤ãã¦ã®å人çã«ã¾ã¨ãããã®ãå ¬éãã¦ãã¾ãã åæå hg init, hg init [ãã¹å]ãã¹åã¯ãªãã¸ããªãä½æããããã¹ãæå®ããªãå ´åã¯ãã®ã³ãã³ããæã¡è¾¼ãã ãã©ã«ãã§.hgãã©ã«ããä½æããã ãã¡ã¤ã«æä½ hg add [ãã¡ã¤ã«å]ãã¡ã¤ã«ããªãã¸ããªã«è¿½å ããã hg addremove, hg addremove [ãã¡ã¤ã«å]ãã¡ã¤ã«ã追å ãããªãã¸ããªå ã«è¦ããããªããã¡ã¤ã«ããªãã¸ããªããåé¤ããã¡ã¤ã«åãæå®ããªãå ´åã¯èªåã§æ°ãããã¡ã¤ã«ã追å ãã¦ãããã hg remove [ãã¡ã¤ã«å], hg rm [ãã¡ã¤ã«å]ãã¡ã¤ã«ããªãã¸ããªããåé¤ããã®éããã¡ã¤ã«èªä½ãåé¤ãããã®ã§æ³¨æã hg copy [ãã¡ã¤ã«å] [ãã¡ã¤ã«å ], hg cp [ãã¡ã¤ã«å] [ãã¡ã¤ã«å ]ãã¡ã¤ã«ãã³ãã¼ãããã³ã
éè¦: Mercurial ã® 1.x â 2.0 ã§ã¯ã ã³ã³ã»ããï¼æä½æ§ï¼äºææ§çã«ããã大ããªæ¹å¤ã¯ããã¾ããã ããã¾ã§é常ã®å®ä¾ã¢ãããã¼ãã«éãã¾ããã®ã§ã å¾æ¥ã®çãå ã«æ¸ããã¦ããæ å ±ã®å¤ãã¯ããã®ã¾ã¾é©ç¨å¯è½ã§ãã ã¯ããã« ãã¼ã PC ã§ã®ç§»åä¸ä½æ¥ãå¤ã㦠ããªãã©ã¤ã³ã§ã³ãããï¼ãã©ã³ãä½æï¼å±¥æ´åç §ï¼å·®ååç §ã§ããªãã ãã¨ã«ä¸ä¾¿ãæãã¦ãããã ãã·ã¹ãã æ§æä¾ã ã«ç¤ºããããªæ§æ管çã®ä»çµã¿ãå¿ è¦ã¨ããçµé¨ãããå ´åã åæ£ãªãã¸ããªå½¢å¼ãç¨ãã Mercurial ã¯ã 試ãã¦ã¿ã価å¤ã®ããã½ããã¦ã§ã¢æ§æ管ç ï¼SCM: Software Configuration Managementï¼ ãã¼ã«ã¨è¨ãã¾ãã ãããã CVS ãªã©ã常ç¨ã㦠SCM ãã¼ã«ã®åçï¼æ¦å¿µãç解ãã¦ãã人ã§ãã æå¤ã«ãåæ£ãªãã¸ããªãã¨ããèãæ¹ããã³ã¨ããªãå ´åãæã
[ Topãã¼ã¸ã¸æ»ã ] Mercurialã§ãã¼ã¸ã§ã³ç®¡ç æ¦è¦ ãåæ£ãªãã¸ããªæ¹å¼ããªãè¨èã«ãã£ã¦èå³ãã²ããããã¼ã¸ã§ã³ç®¡çãã¼ã«ããã®Mercurialã§ãã ä»ã¾ã§ã®ãã¼ã¸ã§ã³ç®¡çãã¼ã«ã¸ã®ä¸æº ãªãã©ã¤ã³ã§ããã¼ã¸ã§ã³ç®¡çããã ãã¾ã¾ã§ãè·å ´ãèªå® ã«ããã¦ãCVSãSubversionã使ãã¨ãã¯ã1å°ã®ãã·ã³ä¸ã«ãªãã¸ããªãç½®ãããã®ãªãã¸ããªã«å¯¾ãã¦ãã§ãã¯ã¢ã¦ããã³ãããã¨ãã£ãå¤æ´ã®æãåºãã»ç»é²ãè¡ã£ã¦ãã¾ãã ãããã£ã¦ããªãã¸ããªã®ãããã·ã³ã¨ä½æ¥ãã·ã³ããããã¯ã¼ã¯ã§æ¥ç¶ã§ããªãã¨ãã¯ããã§ãã¯ã¢ã¦ãããä½æ¥ãã£ã¬ã¯ããªã®å¤æ´ãã³ãããã§ãã¾ããããéå»ã®å¤æ´å±¥æ´ã調ã¹ããã¾ããããããã¯ã¼ã¯ã«æ¥ç¶ã§ããªãæéãçæéãªãããã®ã§ãããé·æéã«ãªãã¨ããã¯ãã¼ã¸ã§ã³ç®¡çãã§ããªãã«çããç¶æ ã§ãã æ°è»½ãªãªãã¸ããªä½æãã§ããããã ã¡ãã£ã¨ä½ã£ãããã°
Mercurial ã®ç¹å¾´ Mercurialã§ãã¼ã¸ã§ã³ç®¡çï¼http://python.matrix.jp/modules/mercurial.html#id3 ãåç §ã®ãã¨ã åæ£å SCM ã¨ãã¦è¨è¨ããã¦ãã åã¬ãã¸ããªã®ãã§ãã¯ã¢ã¦ãã¯ãã®ãã®ï¼åºæ¬çã«ï¼ç¬ç«ãã¦ããï¼ç¬ç«ãã¦çãã¦ããã Subversion ã®ããã«ä¸å¤®é権çã¬ãã¸ããªãä½ããªãï¼ã¨ããããã§ã¯ãªã åä½æ¥è ãããã¹ã¿ã¼ã¬ãã¸ããªãã®å ±éèªèããã¦ã°ããï¼ãããã clone ãã¦ã㦠pull / push ããã®ã ï¼ã¨ï¼ ã¬ãã¸ããªã®ã»ããã¢ããçããããã ã¬ãã¸ããªã®ã»ããã¢ããã¯ç®¡çããããã©ã«ãã«ç§»åã㦠hg init ã¨ãã¤ã ãï¼ãã®å¾ hg addremove ãããï¼ åæ£ç®¡çã§ã¯ãªãèªåã ãã§ç®¡çãããªã RCS 並ï¼ãããã以ä¸ã«ç°¡å âhttp://d.hatena.ne.jp/
æ®æ®µããæçããã¦ãã人ã§ããâèªåã§éããã°ãâã®ã¯ã¡ãã£ã¨ãã¼ãã«ãé«ãã®ã§ã¯ãªãã§ããããï¼éª¨ã®æ§é ããã¤ã³ãã«ãªã£ã¦ãããä¸æããããã®åºæ¬ããéå¥ã®ãã°ãæ¹ãç´¹ä»ããåç»ãå ä¸ã®ç ãæ¹ã®ã³ããã¾ã¨ãã¾ããã â ã¬ããã³æµãä¸æãããã®ã³ã ãã¤ã®ã¾ã«ãã°ãã£ã°ãã£ã«ãªã£ã¦ãã¾ãç´ äººã®ä¸æããããNHKããããã¦ã¬ããã³ãã§ã¯ããã®åå ã次ã®ããã«çªãæ¢ãã¦ãã¾ãã â½ NHK ã¬ããã³ï¼ éã®å°é家ã«ããã¨ãä¸æã«ãã°ããã¤ã³ãã¯â骨ã®æ§é âã«ãããããå¤ãã®äººãèãã¬ãå°»ãã¬ã®ä¸ã«ããâãã¬ãæ¯ãã骨âã®åå¨ãç¥ããªãã¾ã¾å ä¸ãå ¥ãã¦ãã¾ãããã骨ã«ã²ã£ããã£ã¦ãã¾ãåãé²ãããã¨ãã§ããªããªãã¾ãããã¬ã¤ã«ä¸æã«ãããã«ã¯ããã¬ãæ¯ãã骨ãé¿ããããã«å ä¸ãå ¥ãã身ãã¯ããããã«ãã¦åãåããã®ãã³ãã身ãã¯ããéã¯ãå ä¸ãããã¹ãã¼ãç¨ã®ãã¤ãã便å©ã§ãã â éå¥ã®ãã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}