I get the reason, since process require around 2 min and due to didn’t get any response from server within 30 sec, it will show 504 Gateway Time. Even after successfully deployment of project on AWS, when I upload a file after around 30 sec it shows 504 Gateway Timeout. On my local environment the module running properly.
One module needs around 2 min processing on the file for the output. Recently I deployed a Django Project on AWS (or any Linux Server).