Django-ajax-upload-widget.

´Â °£´ÜÇÑ À§Á¬ ±³Ã¼·Î fielfields ¹× imagefields¿¡ ´ëÇÑ Ajax ÆÄÀÏ ¾÷·Îµå ±â´ÉÀ» Á¦°øÇÕ´Ï´Ù ...
Áö±Ý ´Ù¿î·Îµå

Django-ajax-upload-widget. ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • BSD License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Zach Mathew
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://github.com/zmathew/

Django-ajax-upload-widget. ű×


Django-ajax-upload-widget. ¼³¸í

Django-Ajax-upload-widgetÀº Fields ¹× ImageFields¿¡ ´ëÇÑ Ajax ÆÄÀÏ ¾÷·Îµå ±â´ÉÀ» Á¦°øÇÏ´Â Django ¾ÛÀ¸·Î ¸ðµ¨ ÇÊµå ¶Ç´Â ¾Û ³í¸®°¡ ÇÊ¿äÇÕ´Ï´Ù. ÀÌ Ç÷¯±×ÀÎÀº Åõ¸íÇÏ°Ô ÀÛµ¿ÇϹǷΠ¸ðµ¨ ¾ç½ÄÀÌ "ÀüÅëÀûÀÎ"ºê¶ó¿ìÀú ÆÄÀÏ upload.usageRefer°¡ ÀÛ¾÷ example.ServerÀÇ Æû¿¡ ÆÐÅ°Áö¿¡ Æ÷ÇÔ µÈ ¾Û¿¡ Æ÷ÇÔ µÈ ¿¹Á¦ ¾Û¿¡ ¾÷·Îµå µÈ °Íó·³ ÆÄÀÏÀ» ó¸® ÇÒ ¼ö ÀÖ½À´Ï´Ù. Field¿¡¼­ AjaxClearableFileInputÀ» »ç¿ëÇϽʽÿÀ. ImageField.From Django imports formsfrom ajaxclearableFileIdgets AjaxClearableFileInputClass MyForm (forms.form) : my_image_field = forms.ImageField (widget = ajaxclearableFileInput (À§Á¬ = ajaxclearableFileInput ()) ¶Ç´Â modelformÀ» »ç¿ëÇÏ´Â °æ¿ì À§Á¬À» ¹«½ÃÇÒ ¼ö ÀÖ½À´Ï´Ù. django °¡Á® ¿À±â formsfrom ajax_upload.widgets AjaxClearableFileInputClass myForm (forms.modelform) : class meta : model = mymodel widgets = { 'my_image_field': ajaxclearableFileInput} Ŭ¶óÀ̾ðÆ®´Â ÆäÀÌÁö¿¡ JavaScript (¹× ¼±ÅÃÀûÀ¸·Î CSS) ÆÄÀÏÀ» SideInclUde·Î ¿¬°áÇÏ°í Autodiscover ÇÔ¼ö¸¦ È£ÃâÇÕ´Ï´Ù. ±×·¯¸é ¸ðµç AJAX ÆÄÀÏ ÀÔ·Â Çʵ忡 ´ëÇÑ ÆäÀÌÁö°¡ °Ë»öµÇ°í ÇÊ¿äÇÑ JavaScript¸¦ Àû¿ëÇÕ´Ï´Ù. <½ºÅ©¸³Æ® src ="{{static_url}} ajax_upload js jqueryiframp-transportjs "/>

°ü·Ã ¼ÒÇÁÆ®¿þ¾î