初始页面: # coding:utf-8 __author__ = 'Administrator' from django.http import HttpResponse def index(request): html = ''' 论坛首页注意:Python部落论坛
运维专区Django专区部落建设''' return HttpResponse(html) 在view.py中设置![]()
# coding:utf-8 进行python和 html 分开,并进行设置,使用renderOS.path.join是比较重要的操作![]()

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/220205/viewspace-2137639/ ,如需转载,请注明出处,否则将追究法律责任。