Type hint not reaching django template
I have:
return render(request, 'gallery.html', {'gallery': gallery})
In the view, gallery.show_<tab> brings up gallery.show_map.
In gallery.html gallery.show_<tab> brings up gallery.view
How can I make pycharm understand the variables passed to the template?
return render(request, 'gallery.html', {'gallery': gallery})
In the view, gallery.show_<tab> brings up gallery.show_map.
In gallery.html gallery.show_<tab> brings up gallery.view
How can I make pycharm understand the variables passed to the template?
1 条评论
排序方式
日期
投票数
Is the name gallery itself autocompled in your template? How is gallery defined in your view?
请先登录再写评论。