Questions tagged [flup]
37 questions
7
votes
4 answers
python 2.7 import flup error
I'm using djangoflup+fastgic+ngix. It works good.
Now I planned to upgrade from python 2.6.6 to 2.7.2 and met a problem to import flup in python 2.7.
Python 2.7.2 (Red Hat 4.1.2-50)
>>> import sys
>>> sys.path
['', '......',…

zhangchao
- 71
- 1
- 2
6
votes
3 answers
Unhandled Exception in Flup
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…

Nanda Kishore
- 2,789
- 5
- 38
- 61
6
votes
1 answer
Where do print statements write to when using django + nginx + flup?
I'm trying to debug a django app of mine, but it's hard because I have no idea where my print statements are sending their output. I'm using flup and fastcgi with django and nginx, and I can see python errors and access logs via nginx, but I have no…

jmetz
- 815
- 1
- 9
- 19
4
votes
1 answer
class 'psycopg2.InterfaceError': connection already closed
I am pulling my hair over this and am about ready to do something dirty.
I am running nginx + django + postgresql. Half the time I am trying to test my site and open a page, I get the following:
Python 2.7.2:…

Justin M
- 1,065
- 2
- 10
- 15
4
votes
1 answer
Can't import flup.server.fcgi
I'm deploying a Django project following this steps
my .htaccess is:
AddHandler fcgid-script .fcgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ mysite.fcgi/$1 [QSA,L]
my…

Andres Hernandez
- 41
- 3
4
votes
3 answers
apache2 FastCGI comm with dynamic server aborted first read idle timeout
Summary: Unable to run any of the most simple “Hello World” FastCGI script, any request always terminating into a time out. Seems there is no communication at all between the server and the FastCGI scripts (using dynamic FastCGI scripts).
The…

Hibou57
- 6,870
- 6
- 52
- 56
3
votes
4 answers
Best continuously updated resource about python web "plumbing"
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…

interstar
- 26,048
- 36
- 112
- 180
3
votes
2 answers
Version conflict while installing flup
I'm trying to get a django site up on bluehost. I already have one running using python2.7, but for this new project I am using python3.5. I've pretty much tried to set everything up the same way that I did before, except using python3. When trying…

Chase Roberts
- 9,082
- 13
- 73
- 131
2
votes
1 answer
How to configure lighttpd bin-path parameter with flup/python
I am running lighttpd 1.4.26 on Ubuntu 10.04 with Flup 1.0.3 dev version.
When setting up mod_fastcgi, I can successfully get lighttpd to communicate with the fcgi process on a local socket if I spin up the fcgi manually (as www-data) prior to…

Dan Erikson
- 21
- 2
2
votes
1 answer
Recommended way to setup Django Fast CGI configuration with multiple domains
I'm creating a Django project that will be used by multiple domains, and the functionality will be slightly different depending on the domain. I'm looking for advice on the proper way to set this up.
The
sites framework seems like it would be a…

Joe J
- 9,985
- 16
- 68
- 100
2
votes
0 answers
Deploy WSGI application with FastCGI
I was trying to deploy Plone 5 with WSGI and FastCGI. Based on a link on official Plone 5 document, Plone 5 supports deployment with WSGI. I can successfully run bin/paste serve zope.wsgi based on the link above, and see the Plone 5 home page.
The…

Lingfeng Xiong
- 1,131
- 2
- 9
- 25
2
votes
1 answer
Django URLs repeat when using runfcgi
I have the following urlpatterns:
urlpatterns = patterns('',
url(r'^$', 'opeiaa.views.home', name='home'),
url(r'^store/$', 'opeiaa.views.store', name='store'),
url(r'^resume/$', 'opeiaa.views.resume', name='resume'),
…

nevelis
- 736
- 6
- 17
2
votes
2 answers
nginx with mod_wsgi
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…

Ryan Duffield
- 18,497
- 6
- 40
- 40
1
vote
0 answers
FastCGI/Python thread/timing issue?
I'm using the Pyramid framework on a shared server on which mod_wsgi isn't supported. Once I deployed the project, I started getting 500 errors with no really helpful error messages:
[Thu Sep 22 21:40:52 2011] [warn] [client IP] (104)Connection…

Demian Brecht
- 21,135
- 5
- 42
- 46
1
vote
1 answer
sockets and file descriptor magic
I have written a FCGI implementation that I use in a Webserver. I wanted to replace a simple setup with lighttpd.
And I found something odd.
When I try to spawn a Python-Flup server and then connect to it, it only works if I use a TCP Socket
(My…

U65k
- 11
- 1