title: Django: TemplateDoesNotExist at / home.html in my project
body: <p>I can not understand why django can't search 'home.html'</p>
  
  <p>my project name is <code>lucifer</code></p>
  
  <p>here's my tree of projects</p>
  
  <pre><code>│   ├── lucifer
  │   │   ├── __init__.py
  │   │   ├── settings
  │   │   │   ├── __init__.py
  │   │   │   ├── development.py
  │   │   │   ├── partials
  │   │   │   │   ├── __init__.py
  │   │   │   │   ├── base.py
  │   │   │   │   ├── database.py
  │   │   │   │   └── static.py
  │   │   │   └── production.py
  │   │   ├── templates
  │   │   │   ├── base.html
  │   │   │   ├── home.html
  │   │   │   └── partials
  │   │   │       ├── footer.html
  │   │   │       └── header.html
  │   │   ├── urls.py
  │   │   ├── views
  │   │   │   ├── __init__.py
  │   │   │   └── home.py
  </code></pre>
  
  <p>and my <strong><code>home.html</code></strong></p>
  
  <pre><code>{% extends 'base.html' %}
  
  {% block title %}
  Home
  {% endblock %}
  </code></pre>
  
  <p><strong><code>header.html</code></strong></p>
  
  <pre><code>&lt;p&gt;it is header&lt;/p&gt;
  </code></pre>
  
  <p><strong><code>footer.html</code></strong></p>
  
  <pre><code>&lt;p&gt;it is footer&lt;/p&gt;
  </code></pre>
  
  <p><strong><code>base.html</code></strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;title&gt;루시퍼 |{% block title %}{% endblock %}&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
      {% include 'partials/header.html' %}
  
      {% block content %}
      {% endblock %}
  
      {% include 'partials/footer.html' %}
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong><code>home.py</code></strong></p>
  
  <pre><code>from django.views.generic import TemplateView
  
  
  class Home(TemplateView):
      template_name = 'home.html'
  </code></pre>
  
  <p><strong><code>urls.py</code></strong></p>
  
  <pre><code>from django.conf.urls import url
  from django.contrib import admin
  
  from .views import *
  
  urlpatterns = [
      url(r'^admin/', admin.site.urls),
  url(r'$^', Home.as_view(), name='home'),
  ]
  </code></pre>
  
  <p>I think it has no problem..</p>
  
  <p>but error is</p>
  
  <pre><code>Django version 1.9.7, using settings 'lucifer.settings'
  Starting development server at http://127.0.0.1:8000/
  Quit the server with CONTROL-C.
  Internal Server Error: /
  Traceback (most recent call last):
    File "/Users/hanminsoo/.pyenv/versions/lucifer/lib/python3.4/site-packages/django/core/handlers/base.py", line 174, in get_response
  response = self.process_exception_by_middleware(e, request)
    File "/Users/hanminsoo/.pyenv/versions/lucifer/lib/python3.4/site-packages/django/core/handlers/base.py", line 172, in get_response
  response = response.render()
    File "/Users/hanminsoo/.pyenv/versions/lucifer/lib/python3.4/site-packages/django/template/response.py", line 160, in render
  self.content = self.rendered_content
    File "/Users/hanminsoo/.pyenv/versions/lucifer/lib/python3.4/site-packages/django/template/response.py", line 135, in rendered_content
  template = self._resolve_template(self.template_name)
    File "/Users/hanminsoo/.pyenv/versions/lucifer/lib/python3.4/site-packages/django/template/response.py", line 90, in _resolve_template
  new_template = self.resolve_template(template)
    File "/Users/hanminsoo/.pyenv/versions/lucifer/lib/python3.4/site-packages/django/template/response.py", line 80, in resolve_template
  return select_template(template, using=self.using)
    File "/Users/hanminsoo/.pyenv/versions/lucifer/lib/python3.4/site-packages/django/template/loader.py", line 74, in select_template
  raise TemplateDoesNotExist(', '.join(template_name_list), chain=chain)
  django.template.exceptions.TemplateDoesNotExist: home.html
  [06/Feb/2017 07:40:34] "GET / HTTP/1.1" 500 81753
  </code></pre>
  
  <p>please tell me some advise thank you</p>
  
  <p>ADD <strong><code>TEMPLATES</code></strong> in settings.partials.base.py</p>
  
  <pre><code>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>