3/10/2023 0 Comments Pycharm professional flask![]() If necessary, click, and type the string in the editor. In this field, specify the string to be passed to the interpreter. Note that you can select a remote interpreter as well as the local one. Select one of the pre-configured Python interpreters from the list. At any time, you can select all variables in the Environment Variables dialog, click Copy, and paste them into a text file. The variables will be added to the table. Just copy the list of variables from the text file and click Paste ( ) in the Environmental Variables dialog. You might want to populate the list with the variables stored as a series of records in a text file, for example: To create a new variable, click, and type the desired name and value. To fill in the list, click the browse button, or press Shift+Enter and specify the desired set of environment variables in the Environment Variables dialog. If the list contains several variables, they are delimited with semicolons.īy default, the field contains the variable PYTHONUNBUFFERED set to 1. This field shows the list of environment variables. If there is only one open project, this field is not displayed. For more information about Flask debugger, refer to Flask Debug Mode.Ĭlick this list to select one of the projects, opened in the same P圜harm window, where this run/debug configuration should be used. With this mode, the development server will be automatically reloaded on any code change enabling continuous debugging. Select this checkbox to enable the built-in Flask debug mode. The default value is 5000 or it is the port number set in the SERVER_NAME config variable.Īn environment variable set to one of possible environments. To make your web server externally visible, use the '0.0.0.0' value for this parameter. host – the IP address of the web server to run your Flask application on. The field is disabled for the Custom target type, because you can specify the required instance in the combination added to the Target field. For Script path, the Application field is enabled only for the Flask version 0.13 and later. It is typically used for the Module name target type. Then you can add app into the Application field. For example, you've declared the following instance of the Flask class in your application: This value will be put into the FLASK_APP variable during the execution. The target Flask class instance to be executed. You can type in the module name or click the button to search the target module by its name or to locate it in the project structure.Ĭustom combination of modules, scripts, and Flask class instances, for example, access_management.access:app2, where:Īpp2 – the Flask class instance in access. Name of the module in the Flask project, for example, access_management. You can type in the path or click the button to locate the file in the project structure. Path to the Python file, for example, /Users/jetbrains/MyFlaskProject/app.py. Script path – by using a path to a Python file.Ĭustom – by using an arbitrary combination of paths, modules, and Flask class instances.įor more information about the FLASK_APP variable, refer to Flask CLI documentation.ĭepending on the selected Target type, you can specify the following values: Module name – by using a Python module name and a Flask class instance. Choose one of the following methods to construct and pass the FLASK_APP variable to Flask:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |