title: TemplateDoesNotExist error in django
body: <p>I am getting a TemplateDoesNotExist error on my django project and it is very frustrating because I have tried to make the app over and over again to but no avail. I was trying to see if I have made any noticeable errors but I cannot seem to find anything at all. I am making this project to help me learn django off of a website called <a href="https://onemonth.com/" rel="nofollow">OneMonth</a>.</p>
  
  <p>GitHub Project Files <a href="https://github.com/Web-App-Dev/coffeedapp" rel="nofollow">Here</a></p>
  
  <p>settings.py</p>
  
  <pre><code>import os
  
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  MAIN_DIR = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
  
  SECRET_KEY = 'c#16w5r9r2)^n1%7@n4yp*l#itoq_&amp;nw^%c(0f)(_0k0p2vs#w'
  
  DEBUG = True
  
  ALLOWED_HOSTS = []
  
  INSTALLED_APPS = (
          'django.contrib.admin',
          'django.contrib.auth',
          'django.contrib.contenttypes',
          'django.contrib.sessions',
          'django.contrib.messages',
          'django.contrib.staticfiles',
  )
  
  MIDDLEWARE_CLASSES = (
          'django.contrib.sessions.middleware.SessionMiddleware',
          'django.middleware.common.CommonMiddleware',
          'django.middleware.csrf.CsrfViewMiddleware',
          'django.contrib.auth.middleware.AuthenticationMiddleware',
          'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
          'django.contrib.messages.middleware.MessageMiddleware',
          'django.middleware.clickjacking.XFrameOptionsMiddleware',
          'django.middleware.security.SecurityMiddleware',
  )
  
  ROOT_URLCONF = 'coffeedapp.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',
                          ],
                  },
          },
  ]
  
  WSGI_APPLICATION = 'coffeedapp.wsgi.application'
  
  
  DATABASES = {
          'default': {
                  'ENGINE': 'django.db.backends.sqlite3',
                  'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
          }
  }
  
  import dj_database_url
  DATABASES['default'] =  dj_database_url.config()
  
  SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
  
  ALLOWED_HOSTS = ['*']
  
  LANGUAGE_CODE = 'en-us'
  
  TIME_ZONE = 'UTC'
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  STATIC_URL = '/static/'
  
  TEMPLATE_DIRS = (
      os.path.join(MAIN_DIR, 'templates'),
  )
  
  STATICFILES_DIRS = (
      os.path.join(MAIN_DIR, 'static'),
  )
  </code></pre>
  
  <p>urls.py</p>
  
  <pre><code>from django.conf.urls import patterns, include, url
  from django.contrib import admin
  
  urlpatterns = patterns('',
      # Examples:
      # url(r'^$', 'coffeedapp.views.home', name='home'),
      # url(r'^blog/', include('blog.urls')),
  
      url(r'^admin/', include(admin.site.urls)),
      (r'', include('core.urls')),
  )
  </code></pre>
  
  <p>core/urls.py</p>
  
  <pre><code>from django.conf.urls import patterns, include, url
  import core.views as coreviews
  
  urlpatterns = patterns('',
      # Examples:
      # url(r'^$', 'coffeedapp.views.home', name='home'),
      # url(r'^blog/', include('blog.urls')),
  
      url(r'^$', coreviews.LandingView.as_view()),
  )
  </code></pre>