geojoe Posted January 19, 2020 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
Krydos Posted January 20, 2020 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.
geojoe Posted January 20, 2020 Author Posted January 20, 2020 here are the packages missing Flask-Login==0.4.1Flask-Migrate==2.5.2Flask-SQLAlchemy==2.4.1
Krydos Posted January 20, 2020 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/
geojoe Posted January 20, 2020 Author 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
geojoe Posted January 20, 2020 Author 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now