What does "WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead" mean in Flask?

Question:
What does “WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead” mean in Flask and how do I fix it?

I don’t think it is harmful or anything. It’s just a a default message when you start the Flask server.

3 Likes

I know that, but how do I

?

I never bother, as it’s really annoying to do. If you really want to, I guess look into Waitress or something.

1 Like

@NateDhaliwal @Firepup650 What does it even mean? Does it relate to why when I use my Replit (WorldCache) and login, it shows up as logged in on both my in-repl webview and my fullscreen preview?

Yes, I suppose so, data that you move around through the servers appears on the Console.
It’s just a lot of requests (get/post), and some timestamps.

What’s a consope? Also, how can I make it so that each user has a different login session?

Sorry, I meant Console.

Could you elaborate?

How do I fix this problem?

What is the problem?
It seems fine…

For me, the repl has a variable (specifically the loggedIn variable) updates across, both the webview and the new tab preview.

But the user doesn’t run the Webview right?

Why don’t you send a screenshot or screen recording?

I’m just wondering if the loggedIn variable may also sync across other users’ tabs

Possibly, but it shouldn’t affect the user’s experience… he will have to login either way right?

But what if another user goes onto the website. Will they be already logged in with another user’s credentials?

I think it may log out when the user closes the tab… probably a different ID each time.

Hi @RedCoder !
Is you original question answered? About the Warning message?

Sort of. I was originally worried that the WSGI server thing was the source of my problems.

You can mark the post that helped you most as a Solution. :wink: