Hello,
This the message i keep getting, no matter what i put in settings DIR:
TemplateDoesNotExist at /
jobs\home.html
Request Method:
GET
Request URL:
http://bossie.pythonanywhere.com/
Django Version:
2.2.5
Exception Type:
TemplateDoesNotExist
Exception Value:
jobs\home.html
Exception Location:
/home/Bossie/.virtualenvs/django2.1/lib/python3.7/site-packages/django/template/loader.py in get_template, line 19
Python Executable:
/usr/local/bin/uwsgi
Python Version:
3.7.0
Python Path:
['/var/www',
'.',
'',
'/var/www',
'/home/Bossie/.virtualenvs/django2.1/lib/python37.zip',
'/home/Bossie/.virtualenvs/django2.1/lib/python3.7',
'/home/Bossie/.virtualenvs/django2.1/lib/python3.7/lib-dynload',
'/usr/lib/python3.7',
'/home/Bossie/.virtualenvs/django2.1/lib/python3.7/site-packages',
'/home/Bossie/portfolio-project']
Server time:
Thu, 7 Nov 2019 19:11:41 +0000
Template-loader postmortem
Django tried loading these templates, in this order:
Using engine django:
django.template.loaders.filesystem.Loader: /home/Bossie/portfolio-project/templates/jobs\home.html (Source does not exist)
django.template.loaders.app_directories.Loader: /home/Bossie/portfolio-project/blog/templates/jobs\home.html (Source does not exist)
django.template.loaders.app_directories.Loader: /home/Bossie/portfolio-project/jobs/templates/jobs\home.html (Source does not exist)
django.template.loaders.app_directories.Loader: /home/Bossie/.virtualenvs/django2.1/lib/python3.7/site-packages/django/contrib/admin/templates/jobs\home.html (Source does not exist)
django.template.loaders.app_directories.Loader: /home/Bossie/.virtualenvs/django2.1/lib/python3.7/site-packages/django/contrib/auth/templates/jobs\home.html (Source does not exist)
This is my settings.py
ROOT_URLCONF = 'portfolio.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates'),],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},