+ 1

Inserting a html file into python file

I'm using Pycharm on Windows 10 and I'd like to use an html file inside python file, so what should I do? I have my code already written, but the webpage seems not to run this html file even when I have these both files in one folder on my PC. Tutorial I'm refering to uses a render_template method for displaying these html pages, so how to deal with that? Thanks!

15th May 2018, 10:28 AM
chionae
chionae - avatar
1 Réponse
+ 2
If you use flask framework to create a website ,then you can insert html file https://www.tutorialspoint.com/flask/flask_templates.htm
15th May 2018, 11:03 AM
HBhZ_C
HBhZ_C - avatar