title: Error: TemplateDoesNotExist at / blog/home.html "GET / HTTP/1.1" 500
body: <p>I'm going through a Youtube tutorial of someone showing how to create an online blog (to be more specific, his names Corey Schafer, if that helps in any way).</p>
  
  <p>I've written everything just as he has done, but I'm still getting a</p>
  
  <pre><code>TemplateDoesNotExist / blog/home.html
  </code></pre>
  
  <p>every time I run my terminal and pull up the link. I was looking through the comments and someone said:</p>
  
  <p>"Hey, great Tutorial but you didn't tell to add directory i.e. blog/template into the template section of settings.py file, without this, the browser is showing an error that your template doesn't exist."
  If he's right, I'm not sure where I would put that code specifically in the Templates sections under setting.py (I've added this code below). If he's not right, does anyone know why I am getting this error? </p>
  
  <p>Please let me know if you need to see more code. I tried to put everything in here that's relevant.</p>
  
  <p>My Views.py File:</p>
  
  <pre><code>from django.shortcuts import render
  from django.http import HttpResponse
  
  
  def home(request):
      return render(request, 'blog/home.html')
  
  
  def about(request):
      return HttpResponse('&lt;h1&gt;Blog About&lt;/h1')
  </code></pre>
  
  <p>I have a fold named templates, then in that folder is another fold named blog with two files in that: about.html and home.html with the following code in each file:</p>
  
  <pre><code>!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h1&gt;About&lt;/h1&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  
  
  
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;h1&gt;Blog home!&lt;/h1&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>then in another file named apps.py, I have this code:</p>
  
  <pre><code>from django.apps import AppConfig
  
  class BlogConfig(AppConfig):
      name = 'blog'
  </code></pre>
  
  <p>Which I used to install an app in my settings.py file (Templates is at the bottom):</p>
  
  <pre><code>'blog.apps.BlogConfig',
  
  INSTALLED_APPS = [
      'blog.apps.BlogConfig',    &lt;------- Here
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
  ]
  
   MIDDLEWARE = [
      'django.middleware.security.SecurityMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
  ]
  
  ROOT_URLCONF = 'my_second_project.urls'
  
  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',
              ],
          },
      },
  ]
  </code></pre>