Open btrem opened 4 years ago
The site is 100% static. I just upload the HTML, and the bucket serves it. It is not lilke Django or any other framework. So you yes, the navigation is just by the pages (like in old fashioned websites).
I've replaced the underscore character with hyphen for state urls e.g. new-hampshire instead of new_hampshire, but I can't figure out where the underscore is coming from in the name of countries in urls, e.g. faroe_islands. Can you point me in the right direction?
What is this page showing?: https://www.seattle-data.com/countries/cases_on_an_international_conveyance_japan
How does it relate to this page?: https://www.seattle-data.com/countries/japan
I've replaced the underscore character with hyphen for state urls e.g. new-hampshire instead of new_hampshire, but I can't figure out where the underscore is coming from in the name of countries in urls, e.g. faroe_islands. Can you point me in the right direction?
After days of searching, I learned that the underscore is in the .csv files for countries, but not in the .csv files for states. Can we change this? If so, where?
I resolved this by removing the underscore in the data frame, right after reading it with pandas. If that's the wrong approach, let me know.
How are urls determined? Is it just by the file name? Can we attach arbitrary urls to a static document? I've been trying to figure this out, and "flask" keeps coming up in web searches. I'm assuming the covid site is not a flask app.