def index(request):
    hero_list=models.HeroInfo.objects.all()
    return render_to_response('index.html',{'hero_list':hero_list})

视图方法RS,少了return就会报这个错,可以通过,对models的方法的对象一一检查。

相关文章:

  • 2021-05-13
  • 2021-12-30
  • 2022-12-23
  • 2022-01-07
  • 2021-09-02
  • 2022-12-23
  • 2022-12-23
  • 2021-06-17
猜你喜欢
  • 2022-02-26
  • 2022-12-23
  • 2021-06-16
  • 2022-12-23
  • 2022-02-14
  • 2022-12-23
  • 2021-08-09
相关资源
相似解决方案