Create Tables: Usage
We'll cover the following
The plan from the chapter, Design A Web Application, describes the needed fields and tables.
Creating langman_orm.py
In this chapter, we convert these to code, creating the file called langman_orm.py
located in langman/server
. We begin with the Usage table, including the import commands and the call to create_all
. As before, we carry on the development using SQLite and then switch to PostgreSQL for deployment.
Get hands-on with 1200+ tech skills courses.