title: TemplateDoesNotExist at / base/index.html
body: <p>I'm learning Django and am building a landing page. 
  I get the TemplateDoesNotExist error and I think I know the reason but I don't know how to fix this. 
  my <code>index.html</code> is in <code>coffeedapp/coffeedapp/templates/base/index.html</code>
  However it seems like Django tried to load the file from </p>
  
  <p><code>coffeedapp/lib/python2.7/site-packages/django/contrib/admin/templates/base/index.html</code>
  Could someone tell me why this is happening?</p>
  
  <p>I use Django 1.8.1.</p>
  
  <p>My code is below (for settings.py, I only show codes that I added/modified):</p>
  
  <blockquote>
    <p>views.py</p>
  </blockquote>
  
  <pre><code>from django.shortcuts import render
  from django.views.generic import TemplateView
  class LandingView(TemplateView):
      template_name = 'base/index.html'
  </code></pre>
  
  <blockquote>
    <p>core/urls.py</p>
  </blockquote>
  
  <pre><code>from django.conf.urls import patterns, include, url
  from django.contrib import admin
  import core.views as coreviews
  
  urlpatterns = patterns('',
                         url(r'^$', coreviews.LandingView.as_view()),
                         )
  </code></pre>
  
  <blockquote>
    <p>coffeedapp/urls.py</p>
  </blockquote>
  
  <pre><code>from django.conf.urls import patterns,include, url
  from django.contrib import admin
  
  urlpatterns = patterns('',
                         url(r'^admin/', include(admin.site.urls)),
                         (r'', include('core.urls')),
                         )
  </code></pre>
  
  <blockquote>
    <p>settings.py</p>
  </blockquote>
  
  <pre><code># Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  import os
  
  BASE_DIR = os.path.dirname(os.path.abspath(__file__))
  MAIN_DIR = os.path.dirname(os.path.dirname(__file__))
  
  DEBUG = True
  
  ALLOWED_HOSTS = []
  INSTALLED_APPS = (
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
      'core',
  )
  
  ROOT_URLCONF = 'coffeedapp.urls'
  
  WSGI_APPLICATION = 'coffeedapp.wsgi.application'
  STATIC_URL = '/static/'
  
  TEMPLATE_DIRS = (
      os.path.join(MAIN_DIR,'templates'),
  )
  
  STATIC_DIRS= (
      os.path.join(MAIN_DIR,'static'),
  )
  </code></pre>