![]() See How To Install and Use SQLite on Ubuntu 20.04. You can review our How To Build a Website with HTML tutorial series for background knowledge.Ī basic understanding of how to use SQLite. If you are not familiar with Flask, check out How to Create Your First Web Application Using Flask and Python and How to Use Templates in a Flask Application.Īn understanding of basic HTML concepts. In this tutorial we’ll call our project directory flask_app.Īn understanding of basic Flask concepts, such as routes, view functions, and templates. PrerequisitesĪ local Python 3 programming environment, follow the tutorial for your distribution in How To Install and Set Up a Local Programming Environment for Python 3 series. Users can create, edit, and delete individual posts. The web application will be a basic blog that displays posts on the index page. ![]() In this tutorial, you’ll build a small web application that demonstrates how to use SQLite with Flask to perform basic data manipulation covering CRUD: Create, Read, Update, and Delete. Using SQLite with Python also requires minimal setup compared to other database engines. SQLite works well with Python because the Python standard library provides the sqlite3 module, which you can use to interact with any SQLite database without having to install anything. SQLite is a simple and fast open source SQL engine that can be used with Python to store and manipulate application data. For example, you might not want users to add posts with no titles.įlask is a lightweight Python web framework that provides useful tools and features for creating web applications in the Python Language. The actions you perform to manipulate data will depend on specific features in your application. ![]() In a web application, these requirements might be a user adding a new post, deleting a post, or deleting their account, which might or might not delete their posts. You can add data to a database, retrieve it, modify it, or delete it, depending on different requirements and conditions. For example, in a social media application, you have a database where user data (personal information, posts, comments, followers) is stored in a way that can be efficiently manipulated. You use a database to store and maintain persistent data that can be retrieved and manipulated efficiently. In web applications, you usually need a database, which is an organized collection of data. The author selected the Free and Open Source Fund to receive a donation as part of the Write for DOnations program.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |