Skip to main content

Command Palette

Search for a command to run...

Python Flask Hash

Published
1 min read

The command python -m venv venv creates a new virtual environment in a folder named "venv" inside your project directory. This environment will have its own Python interpreter and libraries.

Verify the venv folder in the project folder which is named “python-flask-hash

Step 4: Install Flask

  • To follow along with this guide, you will need to install Flask and bcrypt.

    1. Install Flask:

Add venv on gitignore

Adding the venv directory to .gitignore is essential to prevent the virtual environment files from being tracked by version control tools like Git. Since the venv directory contains environment-specific files that are not necessary for the application’s source code, it is a good practice to exclude it from version control to keep the repository clean and reduce clutter.

Steps to add venv to .gitignore, use the command below**:**

Import the bcript

  • to install bcript use the command below:

python bcript.py