Questions tagged [wsgi]

Web Server Gateway Interface (WSGI) is a standard for web applications written in Python.

The Web Server Gateway Interface (WSGI) is a simple calling convention for web servers to forward requests to web applications or frameworks written in the programming language. Applications, gateways and servers should use it to ensure interoperability.

WSGI is supported by many web frameworks, including , and .

2494 questions
0
votes
0 answers

How to use Gevent/ asyncio if I already use ThreadPoolExecutor() in my code

I've developed a Flask app where I use ThreadPoolExecutor(max_workers=4) in my code. I use this pool of threads when I send API requests to 3rd parties, in order to work in an asynchronous fashion. I deliver my app in production using Gunicron with…
IdoS
  • 482
  • 1
  • 10
  • 18
0
votes
2 answers

ModuleNotFoundError: No module named 'projectName' - wsgi Django Deployment

I am trying to run my Django Project using Apache. When I launch Apache I receive an 'Internal Server Error', inspecting the logs I have found that it fails to execute the wsgi.py for my project and throws the errors below. The error presented says…
Declan Morgan
  • 309
  • 3
  • 12
0
votes
1 answer

How does uWSGI compare with mod_wsgi today?

I've not done Python programming for more than a decade now and the mod_wsgi Apache module used to be one of the best WSGI server at that time. Since then many other WSGI servers seem to have cropped up, out of which uWSGI seems to be a popular and…
sfxedit
  • 157
  • 1
  • 5
0
votes
1 answer

Wrapper over Flask endpoint is very slow

I have a Flask service made with Swagger Editor and Swagger Codegen (python flask). The code generated uses Connexion and Flask to serve the application. This service has an endpoint that, on its own, answers the request in just 300ms (when tested…
Samuel O.D.
  • 346
  • 2
  • 13
0
votes
0 answers

Why is Flask mixing up authenticated users when running with third-party wsgi server?

Flask mixing up authenticated users when running in production mode The problem is whith Flask when i am trying to add any wsgi server (tried uWSGI and Gunicorn). When i am running it in developing mode with built-in wsgi server all requests from…
foodshare
  • 11
  • 4
0
votes
0 answers

Why my docker container is never starting up?

I have following docker compose file: version: "3.8" services: postgres: image: postgres:11 volumes: - myapp_postgres_volume:/var/lib/postgresql/data - type: tmpfs target: /dev/shm …
MsA
  • 2,599
  • 3
  • 22
  • 47
0
votes
0 answers

Only the first page works after configuring Flask with uWSGI and nginx - what's causing the redirection 404s?

Flask uWSGI nginx redirections problems error 404 I have configured the server like this https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with-uswgi-and-nginx-on-ubuntu-18-04 But there is only the first page who are…
0
votes
1 answer

How to implement WSGI while using multiprocessing in flask?

Suppose I have video process handler in a function, I want implement true parallel processing using multiprocessing module instead of threading. So my code looks like this in general: def start_subprocess(pid, progress_dict): ''' Suppose this is…
0
votes
0 answers

Irregular WSGI daemon timeouts in remote Django server

I'm hosting a Django server on a virtual machine with Apache, and running into some odd timeouts. Specifically, every so often, the server will drop, with logs only displaying Timeout when reading response headers from daemon process 'XXX-0.0.86':…
Destaq
  • 655
  • 9
  • 23
0
votes
3 answers

Deploying Pyramid to dotcloud

What is the proper way to deploy a Pyramid project to dotcloud? The contents of wsgi.py: import os, sys from paste.deploy import loadapp current_dir = os.path.dirname(__file__) application = loadapp('config:production.ini',…
user975323
  • 23
  • 2
0
votes
0 answers

WSGI Server for Django + Python-Socketio

I have a Django server, that also has a socketio compenent using python-socketio library. I'm trying to produce a relatively simple but production ready deployment for it on an Amazon EC2 Instance. I've successfully configured the NGINX proxy. I'm…
0
votes
0 answers

Will a Django Webapplication work on a Hostpoint standard Webserver?

I can't seem to find any confirmation anywhere that the standard webhosting service for HostPoint will be able to host my Django project. They seem to suggest I need a Managed Server to run my project, is that the case? I'm kind of new to all of…
0
votes
0 answers

Flask Gunicorn Multiple Users Problem Results

Hello Community members, I have created an app in flask which is basically an openai model that takes voices and audio files for transcribing so i'm using gunicorn and when mulitple users try to upload and transcribe on the web app then it gives…
0
votes
0 answers

Python flask application after docker-compose up is okay, open localhost:5000, get `The connection was reset`

In docker-compose.yml , services: app: build: . entrypoint: ["python", "wsgi.py"] ports: - 127.0.0.1:5000:5000 In wsgi.py: from app import app as application if __name__ == '__main__': …
Dong Jin
  • 21
  • 4
1 2 3
99
100