Jump to content

Recommended Posts

Posted

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'.

 

Posted

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.

Guest
This topic is now closed to further replies.
×
×
  • Create New...