First, the term data source indicates a given method of accessing a database from a server. Recall from the previous chapter that the database used by our web project is named LibraryDatabase. There is a file with the same name within the project folder, which is the data source for that database.
Throughout this chapter, we will be working with the corresponding folder in the code repository Chapter09/DatabaseTutorial. Go ahead and import the folder into your PyCharm workspace. As the first step of the database management process, we will learn how to import a data source into a PyCharm project:
- In general, if the data source file you'd like to work with is not in your current project, then open up the Database panel by going to View | Tool Windows | Database and click on the + icon within the window, as illustrated in the following screenshot...