Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python SQLAlchemy Basics Introduction to SQLAlchemy Creating a Model

Change create_engine() parameter to url

Hello, if I wanted to deploy my website for production, when it has a sqlalchemy database, how can I change the create_engine() first parameter to a url??

1 Answer

Hey Mohamed Abdelaal! There are a bunch of different tutorials on youtube you can find based on where you are deploying your site. I also found a step-by-step walkthrough, Heroku: Deploy your Flask App with a Database Online which looks like if you are deploying to Heroku for example. See step 4 for linking up the database with a Heroku link. :)

Hopefully this helps! There are many resources online and on YouTube :D