# Problem when trying to import a template from a django directory

**URL:** <https://forum.djangoproject.com/t/problem-when-trying-to-import-a-template-from-a-django-directory/10762>\
**Category:** Using Django\
**Created:** [December 1, 2021, 7:46pm UTC](https://forum.djangoproject.com/t/problem-when-trying-to-import-a-template-from-a-django-directory/10762 "2021-12-01T19:46:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [December 1, 2021, 8:41pm UTC](https://forum.djangoproject.com/t/problem-when-trying-to-import-a-template-from-a-django-directory/10762/2 "2021-12-01T20:41:34Z")

</div>

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?](https://forum.djangoproject.com/t/how-to-set-up-an-app-folder-outside-a-project-folder/10717)

---

_[View the full topic](https://forum.djangoproject.com/t/problem-when-trying-to-import-a-template-from-a-django-directory/10762)._
