I had forgotten to import os in the production.py file