Changes between Version 7 and Version 8 of StreamingUpload
- Timestamp:
- Dec 21, 2006, 10:35:23 AM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
StreamingUpload
v7 v8 1 = Streaming Upload = 2 1 3 Example app for patch in ticket #2070 2 4 3 5 {{{ 4 6 #!python 5 7 # models.py 6 8 … … 10 12 description = models.CharField(maxlength=255) 11 13 file = models.FileField(upload_to='files') 12 13 14 }}} 14 15 15 16 {{{ 16 17 #!python 17 18 # manipulators.py 18 19 … … 44 45 new_object.save() 45 46 return new_object 46 47 47 }}} 48 48 49 49 50 50 {{{ 51 51 #!python 52 52 # views.py 53 53 … … 82 82 form = forms.FormWrapper(manipulator, new_data, errors) 83 83 return render_to_response('add_file.html', {'form': form}) 84 85 84 }}} 86 85 87 {{ 88 86 {{{ 87 #!xml 89 88 <!-- add_file.html --> 90 89 … … 95 94 96 95 </form> 97 98 }} 96 }}}