

This prefix is an indication that the environment env is currently active, which might have another name depending on how you named it during creation. Once your programming environment is activated, your prompt will now have an env prefix that may look as follows: If you haven’t already activated your programming environment, make sure you’re in your project directory ( flask_blog) and use the following command to activate the environment: In this step, you’ll activate your Python environment and install Flask using the pip package installer. If you are not familiar with Python, check out our How To Code in Python 3 series.

An understanding of Python 3 concepts, such as data types, conditional statements, for loops, functions, and other such concepts.

In this tutorial we’ll call our project directory flask_blog. A 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 for your local machine.Prerequisitesīefore you start following this guide, you will need: Users of the application can view all the posts in your database and click on the title of a post to view its contents with the ability to add a new post to the database and edit or delete an existing post. In this tutorial, you’ll build a small web blog using Flask and SQLite in Python 3. You’ll use these templates as part of this project. The toolkit will allow you to focus on learning how Flask works.įlask uses the Jinja template engine to dynamically build HTML pages using familiar Python concepts such as variables, loops, lists, and so on. Bootstrap will help you incorporate responsive web pages in your web application so that it also works well on mobile browsers without writing your own HTML, CSS, and JavaScript code to achieve these goals. Flask is also extensible and doesn’t force a particular directory structure or require complicated boilerplate code before getting started.Īs part of this tutorial, you’ll use the Bootstrap toolkit to style your application so it is more visually appealing.

It gives developers flexibility and is a more accessible framework for new developers since you can build a web application quickly using only a single Python file. Introductionįlask is a small and lightweight Python web framework that provides useful tools and features that make creating web applications in Python easier. The author selected the Free and Open Source Fund to receive a donation as part of the Write for DOnations program.
