There are many frameworks which allow to build your webpage using Python, like django, flask etc. Flask is a web application framework written in Python. Flask is based on WSGI(Web Server Gateway Interface) toolkit and Jinja2 template engine. Its modules and libraries that help the developer to write applications without writing the low-level codes such as protocols, thread management, etc.
In this article, we will learn how to make a todo list app using Flask framework. In this app, you can add your todo items and mark them as complete or incomplete.
pip install Flask
1. Create the main python app file as
app.py and write the code.
2. Create the user interface part using html. Give the layout to the app
3. Create the static files like css and any other styling part
After creating the files, create the database using sqlite3. Open the .db file created in your project file using sqlite3.
Create table in the database using .tables command
Open python in terminal and import the db file created to create tables
Now run the
app.py file on terminal.
- Python | ToDo webapp using Django
- Subdomain in Flask | Python
- Python | Using for loop in Flask
- Python | Build a REST API using Flask
- Python | 404 Error handling in Flask
- Python | Introduction to Web development using Flask
- Create a Weather app using Flask | Python
- Flask - (Creating first simple application)
- Deploy Machine Learning Model using Flask
- Setup API for GeeksforGeeks user data using WebScraping and Flask
- Python | Convert list of tuples to list of list
- Python | Convert list of string to list of list
- Python program to create a list of tuples from given list having number and its cube in each tuple
- Python | Filter list of strings based on the substring list
- Python | Replace elements in second list with index of same element in first list
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.