Forums

syntax error of html

When I first run the app; there appeared a syntax error. The syntax error was the <!DOCTYPE html> tag in the flask_app.py file. Should I create a seperate folder for the html or should I just change the python that I am using?

Josiah Gumede

HTML and Python need to be in different files, yes. Have you seen our Flask tutorial? That will walk you through putting together a simple Flask app with templates and database connectivity, and it should only take an hour or so to go through.