How to use Primary Key in Django context view to render on html in python for loop

前端 未结 0 1634
抹茶落季
抹茶落季 2020-12-30 05:31

I have this method in my views followed by my html:

`def index(request):

context = {
    "user": User.objects.get(id = request.session[\'user         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题