Django + FCGID on Fedora Core 9 -- what am I missing?

Fedora Core 9 seems to have FCGID instead of FastCGI as a pre-built, YUM-managed module. [I'd rather not have to maintain a module outside of YUM; so no manual builds for me or my sysadmins.] I'm...

Where is Python's sys.path initialized from?

Where is Python's sys.path initialized from? UPD: Python is adding some paths before refering to PYTHONPATH: >>> import sys >>> from pprint import pprint as p >>> p(sys.path) ['', ...

How do I get user IP address in django?

How do I get user's IP in django? I have a view like this: # Create your views from django.contrib.gis.utils import GeoIP from django.template import RequestContext from django.shortcuts import...

Python ctypes MemoryError in fcgi process from PIL library

I'm trying to run Django on shared hosting (Bluehost). I'm using functionality that requires PIL. PIL imports and works from an interactive shell, but in my fcgi process it crashes with a...

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...

Sticky CSS Footer

Can someone help me make the original code from HTML5 Boilerplate Initializser, have the footer stick to the bottom of the browser, I've tried all manor of codes from web examples but...

Issue clearing the Tkinter Canvas widget using also matplotlib

This plots scattering angle versus detector distance once certain variables have been entered into Entry fields and the 'plot' button has been clicked. This plot shows up in the canvas I have...

Deploying Django on nginx

hi I need to deploy a django application on nginx . I install nginx and python-flup in my fedora I try this guide but nginx can't read my static file . in my project dir I used this command to...

apache2 and mod wsgi : Target WSGI script cannot be loaded as Python module

I am trying to install mod_wsgi on apache2, on ubuntu. So I install libapache2-mod-wsgi package, I activate him with a2enmod. I got a web site (languageAnalyz), that I am trying to use with...

ImportError running Django in FastCGI-mode

I am currently trying to deploy my first django-based site and are running into a few problems as I have very little experience configuring a server. I've followed a guide provided by the host and...

No module named flask.ext.wtf

I'm following @Miguel flask mega tutorial which is great. In chapter 3 he talks about web forms and flaskWTF extension, installing the extension like this sudo pip install Flask-WTF resulted...

VirtualEnv/Pip trying to install packages globally

Edit #2 Solution found; see below. I'm writing a small application in Flask using VirtualEnv. This is far from the first time I've done this, but the this time and past two times I've tried I've...

Why does Pip seem to exclude itself from "pip freeze"?

Trying to setup some simple automation around the requirements.txt and multiple machines and it looks like "pip" just doesn't include itself in the requirements.txt. Note that I have installed it...

FastCGI WSGI library in Python 3?

Does there exist any library that can serve a WSGI application as a FastCGI server, for Python 3? (So that nginx could then proxy requests to it?) The Python 3 docs mention flup, but flup doesn't...

Deploying Django on Shared Hosting (1and1) throws 500

I have developed a project on Django that, locally, runs smoothly using the classic: python manage.py runserver Although the python manage.py runfcgi command throws me the html code of my website,...

flask-socketio doesn't allow connection from android device

Ok so I am following these tutorials to build a socketIO server using flask-socketIO and a client app for android devices. My python setup is pretty simple: Python server: init.py: from flask...

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...

Django with FastCGI gives 404 in browser but works on command line

Summary Django 1.6 Python 2.6 Apache 2.2.27 PostgreSQL 8.4.20 psycopg2 flup Viewing the FastCGI wrapper page for my Django site via the command line seems to work fine, but I always get a 404:...

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...

flask application starts without giving debugging pin, also no request info displayed

I'm truly uncertain how I got into this mode, but when I start my flask application on the development system, I see but there is no display of the debugging PIN and I don't see the requests...

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'],...

Bare minimal flup fastcgi server not working with Nginx

I have written a bare minimal Python fastcgi script webapp.py for test: #!/usr/bin/env python3 # -*- coding: UTF-8 -*- import sys, os, traceback from html import escape from flup.server.fcgi...

OSError: [Errno 22] Invalid argument, running Django on a shared hosting

I'm migrating my web to another server, and I'm setting up everything for django the work. I could solve lots of problems but this one beat me. I have no idea what can cause it. This is the...

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',...

Error running wsgi in python27 and python36

I downloaded mod_fcgid-2.3.9 and used it under Apache 2.4. I did a 'pip install flup' in python 2.7, and try to run the following code to test wsgi. from cgi import escape import sys, os from...

six: cannot import name python_2_unicode_compatible

With six 1.10.0 installed under Python and pip 2.6, an old Django 1.0.4 app is not able to import python_2_unicode_compatible even though it finds six 1.10.0 just fine: >>> import six >>>...

lighttpd + webpy + fastCGI + python3 How it works?

Story: I wrote python3 application with web.py framework (some parser). I like it, but it couldn't process the load (some limit for 10 workers). I found the solution from web.py documentation -...

Spyder 2.2.5 is giving "You should import from qtconsole instead.", ShimWarning

my issue, spyder 2.2.5 stopped running any code. first of all, I have wanted to install ipywidgets but I can't because of python 2.7.6. I updated python 2.7.6 to 2.7.12, then installed ...

Problems with deploying Flask app on Apache2 with mod_fcgid and systemctl ("Unit entered failed state.")

I am trying to deploy a Flask app on Apache 2.4 on the server using mod_fcgid and flup. My Flask app is a big Python3.6 application. I registered it as a service (bot.service) on the server with...

Cant create CSV file with django although already copaste from the documentation

So i try to follow the documentation from django itself how to create CSV file, i copaste the code but it didnt work , it should be the browser download the somefilename.csv when it success , is...