# TemplateDoesNotExist at /red

**URL:** <https://forum.djangoproject.com/t/templatedoesnotexist-at-red/25420>\
**Category:** Mystery Errors\
**Created:** [November 17, 2023, 5:38pm UTC](https://forum.djangoproject.com/t/templatedoesnotexist-at-red/25420 "2023-11-17T17:38:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GraceMpoyi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/gracempoyi/32/17167_2.png) [@GraceMpoyi](https://forum.djangoproject.com/u/GraceMpoyi)\
**Post date:** [November 17, 2023, 5:38pm UTC](https://forum.djangoproject.com/t/templatedoesnotexist-at-red/25420/1 "2023-11-17T17:38:55Z")

</div>

I’m trying to render this html page but it won’t work , I’m currently using Django version 4.2.7 Before I updated, it rendered with other projects, but now it’s not working .I tried DIRS [‘templates’] , DIRS[BASIC\_DIRS] and os.join.path [BASIC\_DIRS ,'templates] but it said that the os wasn’t identified in my setting py for my project .

Here is my views.py and I did include my app in the INSTALLED APPS in my settings.py.

```auto
from django.shortcuts import render
from django.http import HttpResponse

# `Create your views here.

def index(request):
    return render(request, "blue/index.html")

def greet(request, name):
    return HttpResponse(f"Hello,{name.capitalize()}!")

```

url.py for my app specifically,

```auto
from django.urls import path
from . import views

urlpatterns = [
    path("", views.index, name="index"),
    path("<str:name>", views.greet, name="greet")
]

```

my url.py for my project

```auto
from django.contrib import admin
from django.urls import path, include

urlpatterns = [
    path('admin/', admin.site.urls),
    path('red/', include("red.urls"))
]

```

 ![Doesnot work](https://us1.discourse-cdn.com/flex026/uploads/djangoproject/original/3X/5/c/5cb0830b257db5d8f7ef7d2c9680e916096abd72.png)

---

<div class="post-metadata">

**Author:** ![KenWhitesell](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/kenwhitesell/32/280_2.png) [@KenWhitesell](https://forum.djangoproject.com/u/KenWhitesell)\
**Post date:** [November 17, 2023, 7:31pm UTC](https://forum.djangoproject.com/t/templatedoesnotexist-at-red/25420/2 "2023-11-17T19:31:37Z")

</div>

Please post the `TEMPLATES` setting from your settings.py file, along with a description of the directory structure of your project, including the location of the template file.

---

<div class="post-metadata">

**Author:** ![GraceMpoyi](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/gracempoyi/32/17167_2.png) [@GraceMpoyi](https://forum.djangoproject.com/u/GraceMpoyi)\
**Post date:** [November 17, 2023, 9:31pm UTC](https://forum.djangoproject.com/t/templatedoesnotexist-at-red/25420/3 "2023-11-17T21:31:01Z")

</div>

my settings.py

```auto

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

```

my folder is called Django6 , I created a Django project called place. Inside the place folder, I created an app folder called red . Inside my red folder, I created templates folder that contains my index.html is called blue
