Hi Everyone,
This question flows from the answer to:How does one set up multiple accounts with separate databases for Django on one server?
I haven't seen anything like this on Google or elsewhere (perhaps I have the wrong vocabulary), so I think input could be a valuable addition to the internet discourse.
How could one configure a s...
I am facing the dreaded "Unhandled Exception" raised by Flup. The sad part is its raised at the webserver (lighttpd+flup) level and not at the application level(Django). So no 500 email is raised about where the problem is.
Our entire team struggled hard to cleanup the codebase, incase of any ambigous imports and someones of that sort,...
I use flup as fastcgi server for Django.
Please explain to me how can I use singleton?
I'm not sure I understand threading models for Flup well.
...
I'm a programmer in Python who works on web-applications. I know a fair bit about the application level. But not so much about the underlying "plumbing" which I find myself having to configure or debug.
I'm thinking of everything from using memcached to flup, fcgi, WSGI etc.
When looking for information about these, online, Google typi...
Hi,
I have a django app running on apache with fastcgi (uses Flup's WSGIServer).
This gets setup via dispatch.fcgi, concatenated below:
#!/usr/bin/python
import sys, os
sys.path.insert(0, os.path.realpath('/usr/local/django_src/django'))
PROJECT_PATH=os.environ['PROJECT_PATH']
sys.path.insert(0, PROJECT_PATH)
os.chdir(PROJECT_PAT...
Hello,
I have an Apache server with mod_fcgi and I made a project with Juno, which I'd like to run on it. Juno says it supports flup for fcgi but I can't find any info on that, has anyone used it/set it up? Can it be done with server-spawned processes, like with Django?
...
I generally run web apps behind nginx with FastCGI. I wanted to experiment with mod_wsgi, however it seems quite out of date. The author mentions that it worked on version 0.5.34, however I'm running 0.7.62 now.
The wiki article warns of compilation problems with the module and later versions of nginx. Has anybody used mod_wsgi with ...
I'm running Django as threaded fastcgi via flup, served by lighttpd, communicating via sockets.
What is the expected CPU usage for each fastcgi thread under no load? On startup, each thread runs at 3-4% cpu usage for a while, and then backs off to around .5% over the course of a couple of hours. It doesn't sink below this level.
Is thi...
I'm installing Django on Bluehost and one of the steps to install it was to install flup on their server. I did so and everything works great when I'm logged in via the SSH. However when I actually hit the page in my browser it can't find flup. I get this error in the server log:
ERROR: No module named flup. Unable to load the flup p...
I'm building a site for a client using django. It's been hosted on shared hosting and mod_wsgi can't be used. In the old year, I got it working using fcgi, but when I got back, it was broken.
I have replaced the fcgi script with a simple hello world script:
#!/usr/bin/python
def myapp(environ, start_response):
start_response('200 O...
I want to write a simple FastCGI server and I decided to use flup python module. The problem is that I need to send a HTTP client real 4xx and 5xx error status codes if something goes wrong but flup's WSGIServer sends 200 status code and some fancy formatted stack trace. Finally I've figured out how not to send to the client that stack t...
I'm trying to get my Django based webapp into a working deployment configuration, and after spending a bunch of time trying to get it working under lighttpd / fastcgi, can't get past this problem. When a client logs in for the first time, they receive a large data dump from the server, which is broken into several ~1MB size chunks that ...
I am running Django behind nginx using FastCGI. I have discovered that in some of the responses sent to the client, random data corruption is occurring in the middle of the responses (might be a couple hundred bytes or so in the middle).
At this point I have narrowed it down to either being a bug in either nginx's FastCGI handler or Dj...
I have the following setup - and don't get any response when I visit the server in a browser.
Should I expect some? Here's the test setup, using python & flup.
#test.py
def myapp(environ, start_response):
start_response('200 OK', [('Content-Type', 'text/plain')])
return ['abc\n']
import os
os.environ['FCGI_WEB_SERVER_ADDRS']="12...