Forums

sqlalchemy.url

Hi all, I'm trying to connect my database to a pyramid project using sqlalchemy. The url format is: sqlalchemy.url = mysql://username:password@localhost/database

I'm using the username listed on my database settings page, the password I set up and the database name listed on the database settings page. What I'm not sure about is the localhost part - should I leave that as local host or should that point to my url: username.pythonanywhere? or something else....

Thanks for any help in advance! I'm trying to figure it out and will post the answer if I do!

The "localhost part" is the server name. Within PythonAnywhere, you can use mysql.server for that.

Thanks Glenn! That was a huge help for me!