Re: Building a web app for use of third party python package

2017-11-26 Thread Derek
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

Re: Building a web app for use of third party python package

2017-11-25 Thread Enikő Regényi
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

Re: Building a web app for use of third party python package

2017-11-22 Thread Derek
>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:/

Building a web app for use of third party python package

2017-11-21 Thread Enikő Regényi
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