My .csv file is generating correctly and the form works but when I attempt to get an html output I generate a 404 URL not found error. Can you offer any guidance?
THe URL seems fine: http://956f859a-1035-468c-bc53-68ab7f9f943a-ide.cs50.xyz/registered
The route looks like:
@app.route("/sheet", methods=["GET"])
def get_sheet():
#read the survey.csv file and send it to a ul on an html page.
with open("survey.csv", "r") as file:
reader = csv.reader(file)
holidayTravel = list(reader)
return render_template("registered.html", holidayTravel=holidayTravel)
and registered.html is nothing fancy
{% extends "layout.html" %}
{% block body %}
<h1>Submitted Itineraries</h1>
<!-- build a list in a webpage ??? -->
<ul>
{% for travel in holidayTravel %}
<li> {{holidayTravel[0]}}, {{holidayTravel[1] } will be {{holidayTravel[2]. They can be reached on a {{holidayTravel[4]}} at {{holidayTravel[3]}}</li>
{% endfor %}
</ul>
{% endblock %}