Problem when trying to import a template from a django directory

There are two easy and straight forward ways of handling situations like this.

  • Create your code as an installable package and install it in your virtual environment.

  • Copy the code into your Django project directory.

See the recent discussion here: How to set up an app folder outside a project folder?