==Django Fileアップロード例==
[[Django][Python]]
===fileuptest/views.py===
from django.http import HttpResponse
===template/fileuptest/index.html ===
<<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">> <<html>> <<head>> <<META http-equiv="Content-Type" content="text/html; charset=UTF-8">> <<script type="text/javascript">> <</script>> <</head>> <<body>>
{{msg}}
<<form enctype="multipart/form-data" action='/fileuptest/' method='POST'>> <<table>>
{{form}}
<</table> > <<input type='submit' value=" 添 付 ">> <</form>> <</body>> <</html>>
===結果===
[[File:0385_fileup_form01.jpg]]