Cheat Sheet for Flask- [A Complete List]

Flask: Flask is a web application framework written in Python that provides useful tools and features that make creating web applications in Python. Originally, it was developed by Armin Ronancher. Using this, you can quickly build a web application using one Python file.

Furthermore, Flask supports extensions that can add the features of the application features as if they were implemented in Flask itself.

In this article, you will learn Cheat Sheet for Flask. Use these commands to save your working time.

Flask
Flask

Last Updated on Feb 24, 2022.

Start Project Commands:

In the below table, you will learn start project commands and their functions of Flask. Use these commands properly to execute the program.

Command Function
System Variables: WORKON­_HOME If you want a location for virtualenvs, you can use this command.
pip install virtua­len­vwr­app­er_win This command is used to install the virtuallenwrapper utility.
mkproject <pr­oje­ctn­ame> Use this command to create virtualenv and project folder.
workon <pr­oje­ctn­ame> It is used to activate virtualenv and change it to the project folder.
<vi­rtu­alenv folder­>\S­cri­pts­\de­act­ivate By using this command, you can exit the virtualenv.

Install Helper Packages Commands:

In the below table, you will learn about install helper packages commands and their functions of Flask.

Command Function
Flask If you want to use the base package, you can use this command.
Flask_­SQL­Alchemy By using this command, you can use the SQLite connectors.
Flask_­Script Use this command to manage the package.
Flask_­Login Used to make the login functions.
Flask_WTF It is used to make the WT forms extension.
Sphinx Make use of this command to use the documentation helper.
pytest In order to go to the text suite, you can use this command.

Verdict:

You can use these commands for both Windows 10 and Windows 11. Kindly make sure to use the shortcuts properly.

From this article, you will learn Cheat Sheet for Flask. Please feel free to state your query or feedback for the above article. Thank You!!

Read More:

Leave a Comment