Flask CRUD

1 minute read

Flask CRUD Demo Application


Flask is a lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications. It began as a simple wrapper around Werkzeug and Jinja and has become one of the most popular Python web application frameworks.

I have devloped sample demo CRUD application with login and logout option. Application can be downloaded from github repo flask crud.

For developing this application, i have used pycharm ide, but it is not necessary, You can pick any ide or editor of your choice. If you are working on flask framework for the first time then it is suggested to refer the official documentaion of flask. Refer this and try, this will help in getting started with flask application. Once you have some idea about flask then you can download my application code and follow along to develop the same application.


After completion of this application, you will have understanding of flask, jinja template, sqlalchemy, login, validation and blueprint.


  • Database setup and connection For this project i have used postgrace as database but you can configure any database which is supported by sqlalchemy as we will be using sqlalchemy for our database operation. Sqlalchemy gives use freedom from writing database specific queries. It also makes project portable to different backend with minimal changes. Please refer sqlalchemy documentaion and flask sqlalchemy for more details about it.

  • Download pgsql and setup:
    Follow the official postgresql documentation and install it. Post installation create a database and user which will be used for this app.

  • App setup
    Lets start with creating the directory structure as per the app git repo directory structre and follow along.

Happy learning.

Leave a comment