Flask server working outside of application context error
I am trying to display a website using Flask, but am having issues due to main.get_weather not returning a valid response. The goal is to retrieve weather information from an xml url, display on a webpage, and get new data every 10 seconds. I have a project folder containing a static folder, templates folder, and my init.py, main.py, and schedulerservice.py files. Outside of that folder is my app.py. The code I have so far is as follows:
Flask server unable to display index.html due to LookupError
I am trying to display a website using Flask, but am running into a LookupError. It seems as if my index.html file is being treated as a module which cannot be imported. The goal is to retrieve weather information from an xml url, display on a webpage, and get new data every 10 seconds. I have a project folder containing a static folder, templates folder, and my init.py, main.py, and schedulerservice.py files. Outside of that folder is my app.py. The code I have so far is as follows: