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.
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 virtualenvwrapper_win | This command is used to install the virtuallenwrapper utility. |
mkproject <projectname> | Use this command to create virtualenv and project folder. |
workon <projectname> | It is used to activate virtualenv and change it to the project folder. |
<virtualenv folder>\Scripts\deactivate | 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_SQLAlchemy | 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!!