limethei Posted April 15, 2020 Posted April 15, 2020 I want to use Flask on the Tommy server, but I am having some trouble setting it up. I tried following the tutorial on https://wiki.heliohost.org/tutorials/flask, but every time I try to load the flask website this shows up: [Wed Apr 15 15:21:28.397801 2020] [wsgi:error] [pid 18565] File "/home/limethei/public_html/flask/myapp.py", line 72, in <module> [Wed Apr 15 15:21:28.397759 2020] [wsgi:error] [pid 18565] File "/home/limethei/public_html/flask/flask.wsgi", line 7, in <module> [Wed Apr 15 15:21:28.320541 2020] [wsgi:error] [pid 18565] mod_wsgi (pid=18565): Exception occurred processing WSGI script '/home/limethei/public_html/flask/flask.wsgi'. [Wed Apr 15 15:21:28.320447 2020] [wsgi:error] [pid 18565] mod_wsgi (pid=18565): Failed to exec Python script file '/home/limethei/public_html/flask/flask.wsgi'.
wolstech Posted April 15, 2020 Posted April 15, 2020 This is Krydos's territory. I don't know much of anything about Python...I'm a PHP guy.
Krydos Posted April 16, 2020 Posted April 16, 2020 First of all, why do you have your website redirecting to the suspended page? Secondly, your myapp.py file looks completely different from the wiki. If I were you I would start with the working myapp.py, and then make small changes and test frequently. If you drop in a completely different file the problem could be anywhere. At least if you remove the fake suspended redirect I could check if there was a more specific error in the logs.
limethei Posted April 16, 2020 Author Posted April 16, 2020 Well, I just made it redirect there (I don't remember why though). And it seems like copying the example helped, thanks.
Recommended Posts