I'm glad you liked it. If you needed a new import, it was included in the code. I tried to unclutter the code by omitting the previous imports. You can check all the imports in the end code.
Imports will work in whatever order you put them in, but to keep it clean, I:
- first import the pure python imports (eg.
import re)
- leave a blank line
- import Django imports (eg.
from django.shortcuts import render)
- leave a blank line
- import my custom imports (eg.
from bookclub.models import Book)