Krydos Posted 9 hours ago Posted 9 hours ago 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? Quote
shazee09 Posted 8 hours ago Author Posted 8 hours ago 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 Quote
shazee09 Posted 3 hours ago Author Posted 3 hours ago 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.