How to use pycharm - Detailed method of adding program configuration file with pycharm

Time: 2024-03-19Source: Huajun Software TutorialAuthor: Neal

During the process of operating pycharm, many novice partners said that they do not know how to add program configuration files. So how do you add program configuration files to pycharm? The editor below will share with you the detailed method of adding program configuration files to pycharm.

First use pycharm to create a new project. The startup file in the project is as shown in the figure.

1.jpg

A startup configuration file is added to the project, as shown in the figure. The configuration file lists the database connection information.

2.jpg

Next, let’s take a look at how to attach this configuration file at startup. First, find the Run—>Edit Configurations option in the menu bar.

3.jpg

After clicking, a configuration window will pop up, as shown in the figure. In the configuration window, the editor will automatically locate your startup entry file.

4.jpg

Add the address of our configuration file in the red box below, as shown in the figure:

5.jpg

Note that the added address is preceded by config, which must be written, otherwise an error will be reported.

1.jpg

Finally, we start and take a look at the output. You will see that our configuration file has been loaded, as shown in the figure:

7.jpg

The above is the detailed method of adding program configuration files to pycharm brought to you by the editor. Let’s learn together. I believe it can help some new users.

Related articles更多>>

Popular recommendations