Flask app gives a “ 'NoneType' object has no attribute 'drivername' ” error
问题 I got a VPS and I wanted to host my flask app there. I followed DigitalOcean's tutorial on "How To Serve Flask Applications with Gunicorn and Nginx on Ubuntu 18.04" (I didnt get the VPS from DO) and everything worked fine with the example app... when I tried to replace the files with my app's files and host the app again I get a 500 error. The 500 error doesnt appear everywhere. It comes up where my .db file is envoled like where I have posts or users etc.. Everything else loads up fine. The