Changes between Version 7 and Version 8 of StreamingUpload


Ignore:
Timestamp:
12/21/2006 10:35:23 AM (8 years ago)
Author:
Gary Wilson <gary.wilson@…>
Comment:

added title and highlighting

Legend:

Unmodified
Added
Removed
Modified
  • StreamingUpload

    v7 v8  
     1= Streaming Upload =
     2
    13Example app for patch in ticket #2070
    24
    35{{{
    4 
     6#!python
    57# models.py
    68
     
    1012    description = models.CharField(maxlength=255)
    1113    file = models.FileField(upload_to='files')
    12 
    1314}}}
    1415
    1516{{{
    16 
     17#!python
    1718# manipulators.py
    1819
     
    4445        new_object.save()
    4546        return new_object
    46 
    4747}}}
    4848
    4949
    5050{{{
    51 
     51#!python
    5252# views.py
    5353
     
    8282    form = forms.FormWrapper(manipulator, new_data, errors)
    8383    return render_to_response('add_file.html', {'form': form})
    84 
    8584}}}
    8685
    87 {{
    88 
     86{{{
     87#!xml
    8988<!-- add_file.html -->
    9089
     
    9594
    9695</form>
    97 
    98 }}
     96}}}
Back to Top