geojoe Posted January 19, 2020 Share Posted January 19, 2020 Hi good day, I am current learning the flask micro framework and have built a relatively small app.said app runs well on my local machine but returns 500 error when uploaded to the server, attached are my details. any help will be highly appreciated. server tommy (I got lucky)username geojoewebsite: flask.geoffery.ml P.S. my app require some extra flask packages a list of which can be found in requirements.txt Quote Link to comment Share on other sites More sharing options...
Krydos Posted January 20, 2020 Share Posted January 20, 2020 Compare your requirements.txt to this page https://krydos.heliohost.org/cgi-bin/modules37.py and let us know which modules are missing. If you're trying to load modules that aren't available you'll get a 500 error. Quote Link to comment Share on other sites More sharing options...
geojoe Posted January 20, 2020 Author Share Posted January 20, 2020 here are the packages missing Flask-Login==0.4.1Flask-Migrate==2.5.2Flask-SQLAlchemy==2.4.1 Quote Link to comment Share on other sites More sharing options...
Krydos Posted January 20, 2020 Share Posted January 20, 2020 There you go https://krydos.heliohost.org/cgi-bin/modules37.py Now your error is ImportError: cannot import name 'run' from 'app' (/home/geojoe/public_html/flask/app/__init__.py), referer: https://flask.geoffery.ml/ Quote Link to comment Share on other sites More sharing options...
geojoe Posted January 20, 2020 Author Share Posted January 20, 2020 Thanks fixed my error and all seems to be well. BUT is there a way to connect to mysql database from my local machine?I think I might need to apply some migrations Quote Link to comment Share on other sites More sharing options...
Krydos Posted January 20, 2020 Share Posted January 20, 2020 Yes, you can enable remote mysql connections. Quote Link to comment Share on other sites More sharing options...
geojoe Posted January 20, 2020 Author Share Posted January 20, 2020 Thanks a lot.Just have to figure out how to get my flask app to work with SQL. This is the life, the experience is the life I will be victorious. Oh and wonderful service by the way Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.