import os import sys BASE_DIR = os.path.dirname(os.path.dirname(__file__)) sys.path.insert(0, BASE_DIR)