Template doesnot exist error in Django
<p>Am developing an angular frontend and Django backend app.I don't know where i am going wrong but Django cant seem to locate  the template and displays a template doesn't exist message.The project directory looks like this.The backend server is in the "django project" folder</p>

<p><a href="http://i.stack.imgur.com/do8es.png" rel="nofollow"><img src="http://i.stack.imgur.com/do8es.png" alt="project directory"></a></p>

<p>base.py(settings)</p>

<pre><code>import environ

project_root = environ.Path(__file__) - 3  
env = environ.Env(DEBUG=(bool, False),)  
CURRENT_ENV = 'dev' # 'dev' is the default environment

# read the .env file associated with the settings that're loaded
env.read_env('./mysite/{}.env'.format(CURRENT_ENV))

#Database
DATABASES = {  
'default': env.db()
}



SECRET_KEY = env('SECRET_KEY')  
DEBUG = env('DEBUG')

INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',

# Django Packages
'rest_framework',
'mysite.applications.games',


]




ROOT_URLCONF = 'mysite.urls'

STATIC_URL = '/static/'  
STATICFILES_FINDERS = [  
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
]
STATICFILES_DIRS = [  
env('FRONTEND_ROOT')
]


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

<p>Environment variables file(dev.env)</p>

<pre><code>DATABASE_URL=sqlite:///mysite.db  
DEBUG=True
FRONTEND_ROOT= ('C:/downloads/mysite/frontend/')
SECRET_KEY= '##########################'
</code></pre>

<p>urls.py</p>

<pre><code>from django.contrib import admin  
from django.conf.urls import include, url  
from mysite.applications.api.v1.routes import api_router
from django.views.generic import TemplateView



urlpatterns = [  
url(r'^admin/', admin.site.urls),

# Web App Entry
url(r'^$', TemplateView.as_view(template_name="/app/index.html"), name='index'),
]
</code></pre>

<p>I changed template DIRS setting to point to 'C:/downloads/mysite/frontend/' and also the template name to point to "/app/index.html".app is a folder inside frontend.</p>

python django