Flask and PostgreSQL sample for Azure App Service

Last updated: 28/09/2018
Edit on GitHub

This is a sample application that you can use to follow along with the tutorial at Build a Python and PostgreSQL web app in Azure.

The sample is a simple Python Flask application that connects to a PostgreSQL database via SQLAlchemy.

The database connection information is specified via environment variables DBHOST, DBPASS, DBUSER, and DBNAME. This app always uses the default PostgreSQL port.


This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.