python-getting-started icon indicating copy to clipboard operation
python-getting-started copied to clipboard

Default database engine is not Postgres

Open dariagrudzien opened this issue 6 years ago • 1 comments

In the repo the default database engine is set to Sqlite3, while the tutorial uses Postgres: https://github.com/heroku/python-getting-started/blob/master/gettingstarted/settings.py#L80 https://devcenter.heroku.com/articles/getting-started-with-python#provision-a-database

It would be helpful if the repo showed how to work with DATABASE_URL variable instead of hardcoding the database credentials from the app datastore credentials, which also requires looking up an example - we used https://www.digitalocean.com/community/tutorials/how-to-use-postgresql-with-your-django-application-on-ubuntu-14-04

That would be very helpful for beginners. Thanks!

dariagrudzien avatar Jan 23 '19 13:01 dariagrudzien

Good catch! The Django Girls Tutorial also has a deployment chapter, which uses Heroku und describes how to set up Postgres: https://tutorial-extensions.djangogirls.org/en/heroku/

staeff avatar Apr 07 '19 19:04 staeff

The repo's config now uses DATABASE_URL on Heroku (so it's not just in the tutorial), so I believe this is resolved.

edmorley avatar Dec 07 '23 16:12 edmorley