Forums

TemplateDoesNotExist at / base.html

plese help!! can't load templates

Request Method: GET

Request URL: http://taahaa.pythonanywhere.com/

Django Version: 3.2.7

Exception Type: TemplateDoesNotExist

Exception Value: base.html

Exception Location: /home/taahaa/.virtualenvs/taha/lib/python3.6/site-packages/django/template/backends/django.py, line 84, in reraise

Python Executable: /usr/local/bin/uwsgi

Python Version: 3.6.9

Python Path:
['/var/www', '.', '', '/var/www', '/home/taahaa/.virtualenvs/taha/lib/python36.zip', '/home/taahaa/.virtualenvs/taha/lib/python3.6', '/home/taahaa/.virtualenvs/taha/lib/python3.6/lib-dynload', '/usr/lib/python3.6', '/home/taahaa/.virtualenvs/taha/lib/python3.6/site-packages', '/home/taahaa/todolist']

Server time: Mon, 27 Sep 2021 15:18:14 +0530

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [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',
            ],
        },
    },
]

[formatted by admin]

What is the value of BASE_DIR? Where is base.html located? Try replacing 'templates' from the DIRS key with absolute path as well.