I am not aware of such a way; I think HttpResponse does a single thing.
But you could create a page which embeds a link to the results file and
redirect the user to that (I often find that having an "outcomes" page
with some explanation is attached is helpful to the user). Like many
similar
Thanks, I managed to put together something that uploads input, processes
the data and downloads the results. I bumped into a problem though: I would
like to redirect the user AND download the file. Is that possible somehow?
(I apologize if this is a trivial question, I am new to django and fai
>From what you have said, this is not too hard.
You need a basic view to handle the upload, which is in turn will make a
call to the specialised method for processing of the file (and zip
creation) before returning the result to the user.
A quick Google shows some relevant examples:
*
https:/
Hello,
I would like to use Django for building a web application for use of a
third party python package.
This third party package uses a text file as input, and produces a bunch of
text files as output (sorted in directories).
I would like my website to take text/textfile from the user, and
4 matches
Mail list logo