通过urls,views来显示页面
1.把stiatic下的html页面复制到templates下
2.在首页的app的views下新建方法
3.在urls下创建首页的连接地址
def homepage(request):
'''显示首页'''
return render(request,'index.html')
from django.conf.urls import include, url
from car import views
urlpatterns = [
url(r'^index$',views.homepage,name='index'),
]