Forums

python eve and mysql

Has anyone here got Eve running with the PA mysql backend? I can't figure it out for the life of me. Any rudimentary help and or setup would help tremendously!

A huge thank you in advance!

-Doug

As far as I can see from its docs, Eve is designed to use MongoDB as its backend by default. It appears that you need to use the Eve-SQLAlchemy backend to connect it to MySQL. Here's their tutorial, and for help in the details of how to configure your Flask-SQLAlchemy setting so that they work well on PythonAnywhere, our Flask tutorial has the most up-to-date information.