==[[Django Fileアップロード例]]==
[[Django]] | [[Python]] |
===fileuptest/views[[vi]]ews.py=== from django.http import HttpResponseHttp[[R]]esponse
from django.template import Context, loader
from django.forms import *
c['form'] = form
c['msg'] = msg
return HttpResponseHttp[[R]]esponse(t.render(c))
class UploadFileForm(Form):
===template/fileuptest/index.html ===
<!DOCTYPE [[HTML ]] PUBLIC "-//W3C//DTD [[HTML ]] 4.01 Transitional//EN">
<html>
<head>