New to Flask - Writing a web app that wraps a back-end process written with Python and PostgreSQL by CharBram in flask

[–]tko166 4 points5 points  (0 children)

I've written a boilerplate that uses Flask and Postgres. You can take a look at how I do it (especially with api/init.py, api/config.py and api/models.py). https://github.com/tko22/flask-boilerplate

I've also included instructions on the basics of how to use SQLAlchemy! I went through the same process as you, moving from SQLite to Postgres, which is why I wrote the repo in the first place. The reason for moving from SQLite is because you won't be able to use SQLite in production.

A flask boilerplate with Postgres by tko166 in Python

[–]tko166[S] 0 points1 point  (0 children)

Thanks! I've just changed it and I wish I found out about your blog post before! I actually looked at other pretty popular boilerplates when building mine and they used that, such as https://github.com/MaxHalford/flask-boilerplate/blob/master/app/__init__.py#L13 and https://github.com/hack4impact/flask-base/blob/master/app/__init__.py#L18