Criei o html: "C:\Python27\connectedin\perfis\templates\index.html" e coloquei o seguinte código no views.py
from django.shortcuts import render
# Create your views here.
def index(request):
return render(request, 'index.html')
A página de exemplo para de funcionar e exibe a mensagem:
TemplateDoesNotExist at /
index.html
Request Method: GET
Request URL: http://localhost:8000/
Django Version: 1.7.4
Exception Type: TemplateDoesNotExist
Exception Value:
index.html
Exception Location: C:\Python27\lib\site-packages\django\template\loader.py in find_template, line 136
Python Executable: C:\Python27\python.exe
Python Version: 2.7.9
Python Path:
['c:\\Python27\\connectedin',
'C:\\Windows\\SYSTEM32\\python27.zip',
'C:\\Python27\\DLLs',
'C:\\Python27\\lib',
'C:\\Python27\\lib\\plat-win',
'C:\\Python27\\lib\\lib-tk',
'C:\\Python27',
'C:\\Python27\\lib\\site-packages']
Server time: Sat, 5 Mar 2016 17:17:23 -0300