From the course: Using SQL with Python

Unlock the full course today

Join today to access over 23,300 courses taught by industry experts.

Touring the code

Touring the code

- [Instructor] Let's take a look at how this works. Because it's a web application, it's got a few moving parts that you may not be accustomed to. Here in PyCharm, this is db.py from chapter three of the exercise files, under the JURL folder. And this is the main code that manages this whole web application that you see here in the browser. You notice at the top here, it imports a few libraries. Of course, you're familiar with the BWDB library. BW CGI and BW template and BW config file, these are libraries that I wrote literally 10 years ago or more that manage a few things that you can config, library, managers, a simple config file with names and values, separated by an equal sign. The BWC CGI library manages the CGI connection. It takes care of reading CGI variables from the browser and cookies and headers and a few things like that. The BWTPL for a templating system manages these HTML files. You'll notice, I've got these…

Contents