| Django-JS-utils. Django ¹é¿£µå ¸Ç À§¿¡ RIA °³¹ßÀ» µ½´Â Django ¾Û |
Áö±Ý ´Ù¿î·Îµå |
Django-JS-utils. ¼øÀ§ ¹× ¿ä¾à
- °Ô½ÃÀÚ À̸§:
- Vebjorn Ljosa
Django-JS-utils. ű×
Django-JS-utils. ¼³¸í
Django-JS-utils´Â Django / JavaScript °³¹ßÀÚ¸¦ Django ¹é¿£µåÀÇ À§¿¡ RIA °³¹ßÀ» µ½°í DJango_js_utils¸¦ ÆÄÀ̽㠰æ·Î¿¡ Ãß°¡ÇÏ°í Django_js_utils ÀÀ¿ë ÇÁ·Î±×·¥À» installed_apps¿¡ Ãß°¡ÇÏ´Â µ¥ µµ¿òÀ̵Ǵ ´Ù¾çÇÑ µµ±¸¸¦ Á¦°øÇÏ´Â Django ¾ÛÀÔ´Ï´Ù. - (r '^ jsurls.js $', 'django_js_utils.jss.jsurls', {}, 'jsurls')¸¦ URL ÆÐÅÏ¿¡ Ãß°¡ÇÕ´Ï´Ù. - Á¤Àû django_js_utils.js (¹ÝÀüÀÌ Æ÷ÇÔ µÈ ÇÔ¼ö) ¹× ¿ª ÇÔ¼ö (view.html ÅÛÇø®Æ® ¸¸ °¡´É¼ºÀÌ ÀÖÀ½)¸¦ »ç¿ëÇÏ´Â ¸ðµç À¥ ÆäÀÌÁö¿¡¼ µ¿ÀûÀ¸·Î »ý¼º µÈ jsurls.jsÀÔ´Ï´Ù. ¿¹ : - JavaScript Äڵ忡¼ ´ÙÀ½°ú °°ÀÌ Reverse URL : Django_js_utils.urls.resolve ( '´ë½Ã º¸µå') Django_js_utils.urls.resolve ( 'time_edit', {project_id : 1, time_id : 2}) »ç¿ë¿¡ ´ëÇÑ ÀÚ¼¼ÇÑ ³»¿ëÀº django_js_utils.urls.resolve ( 'time_edit', {project_id : 1, time_id : 2})) , example.htmlProductÀÇ È¨ÆäÀÌÁö¸¦ ÂüÁ¶ÇϽʽÿÀ
Django-JS-utils. °ü·Ã ¼ÒÇÁÆ®¿þ¾î