How to process data after a request
Depending on your use case. But I would suggest processing the data in view.py because you want to respond with a success message after the processed data is safely stored in database. With thread you might have a problem if your thread breaks after you responded with a success message.
I have a form where you can input some data, but i want to return the view with a suc6 message and process that data and finally add it to the database.
I have everything working but if I process the data it doesn't return the view right away and I don't know if its good practice to use a Thread instead of Processing the data in the view.py