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

Hi to tell flask to read heroku vs local DATABASE_URL? Thanks

I been working in the flask course with peewee, and is using postgres locally, but when I try to go to heroku, I am unsure how to tackle this section, I will appreciate the help, thanks!

2 Answers

Hi Liliana!

I'm not familiar with the course you are working through, so I haven't tried this myself, but this article might help:

https://swifthorseman.com/2015/06/18/deploying-a-flask-app-with-peewee-to-heroku/

More info:

https://teamtreehouse.com/community/using-peewee-and-postgresql-for-deploying-to-heroku

I hope they help.

Stay safe and happy coding!

Hi Peter,

Thank you so much for sharing this with me, I am excited to take a look hopefully it will solve the problem, thank you!!