package_id
, more on this later.
backend/db.py
.
As you can see, we establish a connection to our table based on its name, which is saved in an environment variable.
Add the name you just created to .env
as “DYNAMO_TABLE_NAME”.
add_user
function I mentioned in the last chapter.
payment_required
decorator does exactly this:
set_user_package
function. To see when and how it is invoked, read the next chapter on payments.