I am a new to django and python. Need some guidance in this quest.
Case: When the user hits the submit button on a form, it should display Success page and a link wh
In the comments Ofri Raviv. you mentioned that its giving you a
TypeError: an integer
which is because while creating FileWrapper u are passing two parameters out of which the second one[optional] is supposed to be integer but u passed 'rb'
wrapper = FileWrapper(file(filename),"rb")
Which should actually be written as ('rb' is the parameter to File)
wrapper = FileWrapper(file(filename,"rb"))
So it was just a misalignment of braces, but makes it hard to debug sometimes.