项目结构:
运行报错出现:
添加输出页面:
修改页面:
1、调用输出页面的views.py
from django.http import HttpResponse
from django.shortcuts import render
# Create your views here.
def index(request):
return render(request,"login.html")
def hello(request):
return HttpResponse("return from the other localhost")
2、页面输出的地址设定urls.py:
如果使用R語言则需要在
查看
R语言是否安装,如果安装了,而且项目不适用R语言,则卸载相关安装
如果电脑开启酷狗听歌的同时,运行程序可能会报错:
该提示为端口被占用:
解决方案:
方法一:关闭占用端口的软件或服务
方法二:修改该程序的端口号:
笔者修改的端口号:
执行显示
点击页面查看:
此项目下载地址:https://download.csdn.net/download/woyizhizaizhaoni/11362684