Top "Wsgi" questions

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

Stop processing Flask route if request aborted

I have a flask REST endpoint that does some cpu-intensive image processing and takes a few seconds to return. Often, …

python http rest flask wsgi
Working with a global singleton in Flask (WSGI), do I have to worry about race conditions?

The hello world demo for Flask is: from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello …

python thread-safety wsgi flask race-condition
Gunicorn Environment Variable Setting

I'm currently having difficulty passing environment variables into Gunicorn for my Django project. I'm on the latest 19.1 version. I have …

django wsgi gunicorn django-wsgi
Script timed out before returning headers: wsgi.py on elastic beanstalk

I'm trying to deploy a Django application to Elastic Beanstalk. When I visit the page it never loads. The logs …

django apache mod-wsgi wsgi amazon-elastic-beanstalk
How can I use an app-factory in Flask / WSGI servers and why might it be unsafe?

A question on app callables, WSGI servers and Flask circular imports I am (possibly) confused. I want to safely create …

python flask wsgi
(13)Permission denied: mod_wsgi Unable to connect to WSGI

I'm trying to run django 1.3.1 on new vps server (CentOS 6). Right now I'm getting this error: (13)Permission denied: mod_wsgi (…

django wsgi
What's the difference between scgi and wsgi?

What's the difference between these two? Which is better/faster/reliable?

python wsgi scgi
httplib CannotSendRequest error in WSGI

I've used two different python oauth libraries with Django to authenticate with twitter. The setup is on apache with WSGI. …

python twitter oauth wsgi httplib
How do YOU deploy your WSGI application? (and why it is the best way)

Deploying a WSGI application. There are many ways to skin this cat. I am currently using apache2 with mod-wsgi, but …

python deployment wsgi
webapp2 redirect explained

I'm sometimes unsure how to use webapp2.redirect. Is there ever a time when I should use self.redirect("/blah") …

google-app-engine redirect wsgi webapp2