使用bjango创建一个web项目,
新建views.py文件
from django.http import HttpResponse def hello(request): return HttpResponse( "赵文哲天天开心! " )
修改urls.py文件为
from django.conf.urls import url from . import views urlpatterns = [ url( r'^$', views.hello ), ]
标签:总结,views,url,每日,py,HttpResponse,django,2023,import From: https://www.cnblogs.com/azwz/p/17294617.html