Code

Changes between Version 2 and Version 3 of StreamingUpload


Ignore:
Timestamp:
12/20/06 10:01:50 (7 years ago)
Author:
Øyvind Saltvik <oyvind.saltvik@…>
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • StreamingUpload

    v2 v3  
    1 Work in progress 
     1Example app for patch in ticket #2070 
    22 
    33{{{ 
    44 
    55# models.py 
     6 
     7from django.db import models 
    68 
    79class SomeFile(models.Model): 
     
    4951# views.py 
    5052 
    51 from manipulators import  
     53from manipulators import AddFileManipulator 
    5254 
    5355def upload_file(request): 
     
    8183 
    8284}}} 
     85 
     86{{ 
     87 
     88<!-- add_file.html --> 
     89 
     90<form enctype="multipart/form-data" method="post" action="/foo/"> 
     91 
     92<p>Description: {{ form.description }} </p> 
     93<p>File: {{ form.file_file }} </p> 
     94 
     95</form> 
     96 
     97}}