urbanists.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
We're a server for people who like bikes, transit, and walkable cities. Let's get to know each other!

Server stats:

552
active users

#flask

6 posts6 participants0 posts today

Glad my years of nagging about Werkzeug's development server not being for production is finally starting the conversation about Django's development server as well. #Python #Flask #Django

I want to completely unbundle the dev server so you have to install `flask[dev]`to get it, but I haven't been able to figure out a compatible way to do so. That would also open up the door to Hypercorn as the default dev _and prod_ server without forcing all its dependencies if not used.

I have been beating my head on trying to get Flask-SocketIO to work with an existing #flask app and accept connections from a third-party origin.

I get 400 errors because the socket closes before a connection can be made. I've disabled CORS (local-only network) and have double checked that every library is compatible. Serving a websocket route from the app works, but it will not other hosts.

Anyone with experience able to take a look at a repo or offer insight?