Can't get Flask running using Passenger WSGI on Dreamhost shared hosting

前端 未结 1 987
攒了一身酷
攒了一身酷 2021-02-14 14:50

I\'m trying to get a Flask \"hello world\" application working on a Dreamhost shared server, following the instructions on their wiki, but I\'m not having any luck.

My F

相关标签:
1条回答
  • 2021-02-14 15:23

    Does answering my own question mean I'm talking to myself?

    Anyway - I seem to have fixed it. Rather than find a nice helpful error message, I went through all the steps again one at a time, and it turns out it was an import error in the passenger_wsgi.py file. As the app is in the mysite subdirectory, the line:

    from mysite import hello as application
    

    should have been (and in fact, now is):

    from mysite.hello import app as application
    

    And it works. Which is nice.

    0 讨论(0)
提交回复
热议问题