Krydos Posted May 5 Posted May 5 I see a 403 at https://shahzaib.heliohost.us/ that is caused by there being no index file. You can fix this by putting index.html or index.php. What URL are you seeing a 404 at?
shazee09 Posted May 5 Author Posted May 5 On this URL: https://shahzaib.heliohost.us/flasktest/rates Please see this video: https://www.loom.com/share/8521882fcaba4207aaefd391df6d0057?sid=5a6e990e-222c-4d10-a347-992d744c6b3a
shazee09 Posted May 5 Author Posted May 5 Hi, I was able to resolve the issue. The problem was that the .env file wasn’t being read, so I updated the code to specify the path explicitly: dotenv_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), '.env') load_dotenv(dotenv_path) Now it works correctly. Thanks everyone for your help.
Recommended Posts