Python name ‘os’ is not defined

Just add:

import os

in the beginning, before:

from settings import PROJECT_ROOT

This will import the python’s module os, which apparently is used later in the code of your module without being imported.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)