![]() In this tutorial the project directory is called flask_app.Īn understanding of basic Flask concepts, such as routes, view functions, and templates. Follow the tutorial for your distribution in How To Install and Set Up a Local Programming Environment for Python 3 series. PrerequisitesĪ local Python 3 programming environment. You’ll use it with Flask to perform basic tasks, such as connecting to a database server, creating tables, inserting data to a table, and retrieving data from a table. In this tutorial, you’ll build a small book review web application that demonstrates how to use the psycopg2 library, a PostgreSQL database adapter that allows you to interact with your PostgreSQL database in Python. ![]() It’s standards-compliant and has many advanced features such as reliable transactions and concurrency without read locks. PostgreSQL, or Postgres, is a relational database management system that provides an implementation of the SQL querying language. 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 |