Add missing os import to views.py