return render_template("/index.html", lst = df, 
                  
                  
                                                  indexsection = render_template("/devices.html",lst=df),
                  
                  
                                                  mainsection = render_template("/intro.html"), 
                  
                  
                                                  copyrightsection=render_template('/copyright.html'))
                  
                  
                  В index.html используются конструкции типа {{indexsection}}, {{mainsection}} и пр.
                  
                  
                  df - pandas.DataFrame с данными
                  
                  
                  
                  
                  
                  Почему в итоговом html-файле {{indexsection}} заменяется на то, что генерит функция render_template в кавычках и как этого избежать?
                  
                  
                
не рендари, вот и всё, загрузи как текст
Мне рендер нужен
то надо, то не надо, уж определись
Обсуждают сегодня