為什么我的index.html不起作用,顯示的依然是hello,world
<!DOCTYPE?html> <html?lang="en"> <head> ????<meta?charset="UTF-8"> ????<title>Title</title> </head> <body> <h1>HELLO,index!</h1> </body> </html>
from?django.shortcuts?import?render from?django.http?import?HttpResponse def?index(request): ????return?render(request,?'index.html')
2019-06-29
看一下你的blog2應用下是不是import第一個應用的views
2019-07-30
已解決謝謝回答