1.打开pycharm,选择菜单栏file>New Project 注意,上面的项目名称应该为2,截图错了 2、项目结构 3、在djangoApp目录下的views写视图情况 from django.shortcuts import render from django.shortcuts import HttpResponse # Create your views here. def index(request