Forums

Templates with virtualenv and Tango with Python

I am using virtualenv to use Django 1.8 and I'm following along with Tango with Django.

http://www.tangowithdjango.com/book17/chapters/templates_static.html#dynamic-paths

I'm at section to set "TEMPLATE_PATH" and "TEMPLATE_DIRS". What should these be set to in order to play nice with the virtualenv setup in PA? Also, I put my template in the project/project/template/app/ folder. Is that the right location for it?

Where you put your templates shouldn't change if you're using a virtualenv. Except for one caveat: Don't put your templates into the virtualenv directory. Keep them in the same place as your source (don't put that in the virtualenv directory either!). Other than that, you can put them wherever you like.