TemplateDoesNotExist Error in Django Project - how to Slove
TemplateDoesNotExist at /login/
login.html
| Request Method: | GET |
|---|---|
| Request URL: | http://127.0.0.1:8000/login/ |
| Django Version: | 3.0.5 |
| Exception Type: | TemplateDoesNotExist |
| Exception Value: | login.html |
| Exception Location: | /home/cit246/Desktop/venkat/assessmentproject/assenv/lib/python3.6/site-packages/django/template/loader.py in get_template, line 19 |
| Python Executable: | /home/cit246/Desktop/venkat/assessmentproject/assenv/bin/python3.6 |
| Python Version: | 3.6.10 |
| Python Path: | ['/home/cit246/Desktop/venkat/assessmentproject/assessmentproject', '/home/cit246/Desktop/venkat/assessmentproject/assessmentproject', '/home/cit246/Desktop/venkat/assessmentproject/assenv/lib/python36.zip', '/home/cit246/Desktop/venkat/assessmentproject/assenv/lib/python3.6', '/home/cit246/Desktop/venkat/assessmentproject/assenv/lib/python3.6/lib-dynload', '/usr/lib/python3.6', '/home/cit246/Desktop/venkat/assessmentproject/assenv/lib/python3.6/site-packages'] |
| Server time: | Sun, 12 Apr 2020 05:26:55 +0000 |
go to settings.py
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
#'DIRS': [os.path.join(BASE_DIR, 'templates')],
'DIRS': ['./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',
],
},
},
]
Comments
Post a Comment