开发者社区> 问答> 正文

python中想要去修改 views.py增加一个新的对象文件代码是什么呢?

python

展开
收起
bnbajjyhyjfty 2021-11-12 17:16:10 477 0
1 条回答
写回答
取消 提交回答
  • from django.shortcuts import render

    def runoob(request): context = {} context['hello'] = 'Hello World!' return render(request, 'runoob.html', context)

    2021-11-14 19:13:48
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
From Python Scikit-Learn to Sc 立即下载
Data Pre-Processing in Python: 立即下载
双剑合璧-Python和大数据计算平台的结合 立即下载