| Django-gitrivision. Django Git Revision, °£´ÜÇÑ Ãß°¡ ÷°¡ °³Á¤ÆÇÀ» ÅÛÆÛ½º ¹× ºä¿¡¼ »ç¿ëÇϱâÀ§ÇÑ °´Ã¼¸¦ ¿äûÇÒ ¼öÀÖ´Â °³Á¤ |
Áö±Ý ´Ù¿î·Îµå |
Django-gitrivision. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Kirill Klenov
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://github.com/klen/
Django-gitrivision. ű×
Django-gitrivision. ¼³¸í
Django Git Revision, °£´ÜÇÑ ÇöÀç GIT °³Á¤ÆÇ Ãß°¡ ÆÀÄá ¹× ºä¿¡¼ »ç¿ëÇϱâÀ§ÇÑ °´Ã¼¸¦ ¿äûÇϱâ À§ÇØ Django-Gitrevision IIS ºä ¹× ÅÛÇø´¿¡¼ Git Last Head Commit HexStringÀ» »ç¿ëÇÒ ¼öÀÖ´Â Django ¾Û .ItStallationDjango Git RevisionÀº PIP¸¦ »ç¿ëÇÏ¿© ¼³Ä¡ÇؾßÇÕ´Ï´Ù. PIP ¼³Ä¡ Django-GitrevisionSetupÀ» »ç¿ëÇÏ¿© Gitrevision Add instudment_apps : installed_apps + = 'gitrevision'¿¡ Ãß°¡ÇϽʽÿÀ. ÅÛÇø´¿¡¼¸¸ Git Revision ¸¸ »ç¿ë ÇϽðڽÀ´Ï±î : template_context_processors + = 'gitrevision.context_processors.gitrevision'¹× git_revision vars ÅÛÇø´¿¡¼ git_revision var¸¦ »ç¿ëÇϽʽÿÀ. ... {script src = "/ test.js? {{git_revision} } "> ... ¶Ç´Âº¸±â ¹× ÅÛÇø´¿¡¼ Git RevisionÀ» »ç¿ëÇÏ·Á¸é Gitrevision ¹Ìµé¿þ¾î¸¦ ¼³Á¤ÇϽʽÿÀ. middleware_classes + = 'gitrevision.middleware.gitrevision'»ç¿ëÇϱâ views : def superview (¿äû) : git_revision = request.git_revision (requestcontext·Î) ÅÛÇø´À¸·Î »ç¿ë : ... <½ºÅ©¸³Æ® src¸¦ = " testjs {{requestgit_revision}}"/> ... ¾î¼¸é ´ç½ÅÀÌ ÇÊ¿ä APPENDÀÇ GIT_PATH Django ¼³Á¤¿¡¼ : git_path = ¹ö±× Æ®·¡Ä¿°¡ Á¦¾È, ¹ö±× º¸°í¼ ¶Ç´Â ¼º°¡½ÉÀÌ ÀÖÀ¸¸é HTTPS://Github.com/klen/django-gitrevision/issueScontributingDevelopmentÀÇ À̽´ Æ®·¡Ä¿¿¡ À̽´ Æ®·¡Ä¿¿¡ ½Å°íÇϽʽÿÀ. github : https : // github¿¡¼ ¹ß»ýÇÕ´Ï´Ù. com / klen / django-gitrevision ¿ä±¸ »çÇ× : ¡¤ ÆÄÀ̽㠡¤ Àå°í
Django-gitrivision. °ü·Ã ¼ÒÇÁÆ®¿þ¾î