use settings.PROJECT_PATH in the code, and remove these two lines.  The settings import should go at the top of this import block