![]() I should note that if you are doing this on Windows, your virtualenv is not going to have a "bin" subdirectory. If your virtualenv is in the same directory as your project this is much easier to do. If you store your virtual environments outside of your project, or if you use a virtual environment wrapper such as pipenv which has its own location for virtualenvs, you will need to find out where the virtualenv is located and browse to that directory and then down into bin to find the flask command. button to the right to browse and select this script. Under Script path you need to select the flask tool, which is located in the bin directory of your virtual environment. I like to check the Single Instance Only option, because for a web application it isn't very useful to run multiple instances. For the Name field, enter a description of this configuration, such as "webapp". To create a new configuration, click the + sign, and then select Python. If this option appears disabled, you just need to wait a little bit and let P圜harm complete its initial background parsing of the project. To create or edit configurations you have to select Run|Edit Configurations. P圜harm works with the concept of "configurations", which are sets of parameters that define a run or debug task. One of the first things you'll probably want to do is run your project. ![]() The left sidebar will now show you a tree structure with all the files in your project. P圜harm will create a new project and open it. All you need to do to create your Flask project is to start P圜harm, select Open, and then choose the top-level directory of your application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |