![]() |
[split] flask 500 internal server error - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html) +--- Thread: [split] flask 500 internal server error (/thread-35494.html) |
[split] flask 500 internal server error - DarthTensor - Nov-09-2021 I copy pasted the code to create a minimal application from the FLASK docs . from flask import Flask app =Flask(__name__) @app.route('/') def home(): return "hello" if __name__ == '__main__': app.run()I get the 500 internal server error for this . Pls help me ! RE: [split] flask 500 internal server error - DarthTensor - Nov-09-2021 Im extremely sorry i didnt know this ...Im new to this forum ..extremely sorry for the convenience RE: [split] flask 500 internal server error - ndc85430 - Nov-10-2021 Can you show (or explain) how you're getting the 500? I copied the code as is, ran it, navigated to localhost:5000 in my browser and I got the expected response (a 200 with "hello" in the body). RE: [split] flask 500 internal server error - DarthTensor - Nov-11-2021 (Nov-10-2021, 08:48 AM)ndc85430 Wrote: Can you show (or explain) how you're getting the 500? I copied the code as-is, ran it, navigated to localhost:5000 in my browser and I got the expected response (a 200 with "hello" in the body).I guess there was some problem with the server itself.I tried back in the morning and the same piece of code worked perfectly as expected :) |