1👍
✅
by getting the same issue before i simple replace like this :
import os
TEMPLATE_DIRS = (
os.path.join(os.path.dirname(__file__),'templates').replace('\\','/'),
)
0👍
A similar error can be caught when using Google app Engine.
True, template should be in plural “templates”
A common mistake is to include the template directory in the yaml file
- url: /templates
static_dir: templates
If you remove those two lines your code will work just fine assuming that your path is the following:
path = os.path.join(os.path.dirname(__file__), 'templates/home.html')
- [Answer]-Django Models not being loaded when the celery worker starts
- [Answer]-How to search through my database and how to store there parsed data on python
- [Answer]-Reverse PTR Record With Heroku
Source:stackexchange.com