Questions tagged [flup]

37 questions
1
vote
4 answers

python web app in prod

I am considering to use python serving json based web services, my priorities are, in order: maintainability easy of coding high availability performance Apache->AJP->Flup->Python seems ok to me, would you recommend another setup or is this ok ?
mete
  • 589
  • 2
  • 6
  • 17
1
vote
1 answer

Multiple installs of Django - How to configure transparent multiplex through the webserver (Lighttpd)?

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…
Brian M. Hunt
  • 81,008
  • 74
  • 230
  • 343
1
vote
0 answers

Django - Dispatch.fcgi displaying correct output in terminal, but browser leads to Unhandled Exception

I have just installed Django-cms and am running Django using FastCGI and flup on shared hosting. When I call "dispatch.fcgi" from the terminal, I get the correct html output. However, when I try to go to my website from a browser, I get the…
oimhead
  • 11
  • 1
  • 3
1
vote
1 answer

Issue setting up Flask site

I'm working through a short Flask tutorial and am having some issues. I got to the end and got a 500 Server error. If I run the .fcgi from within my virtual environment I get the message below. I don't see any errors in logs I have access to. Not…
wanderingandy
  • 823
  • 1
  • 8
  • 16
1
vote
1 answer

Difficulty getting flup fcgi script to work

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…
Gary van der Merwe
  • 9,134
  • 3
  • 49
  • 80
1
vote
1 answer

Defining PYTHONPATH for http requests on a shared server

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…
Adam
  • 3,063
  • 5
  • 35
  • 49
1
vote
2 answers

flup/fastcgi cpu usage under no-load conditions

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…
Paul McMillan
  • 19,693
  • 9
  • 57
  • 71
1
vote
0 answers

webpy lighttpd and flup. 500 error

Currently I have a lighttpd server with flup and webpy. If you make enough requests fast enough (say clicking a link repeatedly many times or doing an apache bench) Lighttpd throws a 500 internal server error. At this point it is pretty easy to…
sambev
  • 131
  • 7
1
vote
2 answers

Python 2.7 with Webpy - flup or modwsgi?

I am unsure which of the two I should go for. Flup or modwsgi. Flup seems to have very little documentation and even less people adding to the code. modwsgi on the other hand seems to be widely supported. I just want to start running my webpy…
PythonRocks
  • 59
  • 1
  • 4
0
votes
2 answers

FastCgi crashes -- Want to catch all exceptions but how?

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,…
diN0bot
0
votes
1 answer

How to make a singleton class with Python Flup fastcgi server?

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.
maxp
  • 5,454
  • 7
  • 28
  • 30
0
votes
1 answer

Switch between FCGI and CGI with Python and Flup

I'm currently moving all my Python CGI scripts to WSGI standard using Flup (http://trac.saddi.com/flup), I created a dispatch.fcgi file calling and using Flup as described in the documentation: from flup.server.fcgi import WSGIServer ... and works…
Htechno
  • 5,901
  • 4
  • 27
  • 37
0
votes
0 answers

AttributeError: 'module' object has no attribute 'fromfd'

I am experimenting with a simple WSGI web serve like: from flup.server.fcgi import WSGIServer import sys, os def app(environ, start_response): start_response('200 OK', [('Content-Type', 'text/html')]) yield '

FastCGI Environment

' …
John Mutuma
  • 3,150
  • 2
  • 18
  • 31
0
votes
1 answer

Why does using FastCGI with lighttpd trigger a 404 when the routing is not changed?

I have a bottle-based web application which I would like to move to FastCGI: # coding=utf-8 import bottle class Webserver: def __init__(self): bottle.route('/api', ['GET', 'OPTIONS'], self.data) bottle.run(host='127.0.0.1',…
WoJ
  • 27,165
  • 48
  • 180
  • 345
0
votes
2 answers

If I have an fcgi server running and visit it with a browser, what should happen?

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',…
fastmultiplication
  • 2,951
  • 1
  • 31
  • 39