Questions tagged [mod-wsgi]

The mod_wsgi module is a python WSGI adapter module for Apache.

The mod_wsgi module is a python WSGI adapter module for Apache. For details on the official channel for getting mod_wsgi help, see http://modwsgi.readthedocs.io/en/develop/finding-help.html.

3241 questions
1
vote
3 answers

I'm unable to deploy Django 1.8.5 on my production environment with Python 2.7.10

On my local environment, with Python 2.7.10, my Django project seems to run perfectly well using .manage.py runserver. But when I tried to deploy the project to my Debian Wheezy server using the same version of python 2.7.10, it encountered 500…
1
vote
1 answer

Using Python mod_wsgi application with Blueprints

I am trying to create simple mod_wsgi application with following structure. Files: /var/www/test/application.wsgi - mod_wsgi process /var/www/test/hello.py - python application /var/www/test/static/index.html - static…
tennis
  • 91
  • 1
  • 8
1
vote
1 answer

Weird subprocess issue with Django

I'm sorry if this is a duplicate question, but after searching through 3 pages for "django subprocess", I, for one, could not find the answer to my particular problem. I'm trying to run pdflatex on tex file, but for some reason in Django it doesn't…
Uku Loskit
  • 40,868
  • 9
  • 92
  • 93
1
vote
1 answer

flask-sqlalchemy "no such table" under mod_wsgi

For some reason flask-sqlalchemy seems to have problems resolving the sqlite tables when running under apache + mod_wsgi. simplified example: from models import db, User app = Flask(__name__) app.config['DEBUG'] =…
shreddd
  • 10,975
  • 9
  • 33
  • 34
1
vote
3 answers

Deploy a python3.4-based Django project on Centos 6.5 with mod_wsgi: doable?

I have a project that works very nicely using the dev web server but I'm running into tons of problems getting it to play nice on an old-ish centos box with the system apache (ie installed via yum.) I uninstalled the yum-based wsgi (because it was…
Owen
  • 3,063
  • 5
  • 30
  • 26
1
vote
1 answer

OSError at /blog/create [Errno 13] Permission denied: '/static' during image upload in Django

So I am practicing with Django by building my own blog app, and I can't figure out why I'm getting this error when I try to upload the header image using an ImageField. I configured wsgi to use the correct user, as shown below. And I made sure…
Phito
  • 1,195
  • 3
  • 10
  • 20
1
vote
1 answer

Mod wsgi not using virtualenv python version on Arch linux

I have a website running on apache-python2(virtualenv)-flask stack on Arch linux server. It seems that wsgi application is not picking up the python from virtualenv, and instead uses system's python. web/test.py import sys print(sys.version) Result…
Neo
  • 13,179
  • 18
  • 55
  • 80
1
vote
1 answer

Forbidden error Wamp2.5 apache + Django on Windows 10

I got a forbidden message error when I type localhost/project on windows 10. Tried suggestions with Order allow,deny Allow from all Tried also the solution suggested here, without success, conf file of the apache on wamp 2.5 already listens on…
Nick
  • 677
  • 1
  • 11
  • 25
1
vote
1 answer

Python signals hosted on WSGI

I'm using the python signals library to kill a function if it runs longer than a set period of time. It works well in my tests but when hosted on the server I get the following error "signal only works in main thread" I have set the WSGI signals…
Dave
  • 1,658
  • 3
  • 17
  • 19
1
vote
1 answer

RESTful Python Routes - not working?

RESTful routing in Python does not seem to work. For instance, # Setup a mapper from routes import Mapper map = Mapper() map.connect("add user", "/user", controller = "addUser", action = "add", conditions=dict(method=["GET"])) map.connect("post…
Run
  • 54,938
  • 169
  • 450
  • 748
1
vote
1 answer

Django on Apache with mod_wsgi: ImportError on settings

I am serving a Django site on Apache2 server with mod_wsgi. Here is what my mysite/mysite directory looks like: (mysite_venv)➜ mysite tree mysite -I "*.pyc" mysite ├── __init__.py ├── db.sqlite3 ├── settings │   ├──…
1
vote
2 answers

How i say the interpreter version for wsgi apache

In debian recently change de default version of python from 2.5 to 2.6 but i need 2.5, how i can configure apache and/or wsgi script to say it use pythons2.5 and not python default?
diegueus9
  • 29,351
  • 16
  • 62
  • 74
1
vote
1 answer

Redirect 404s to the index page if they are not under /api

I want to redirect any request which is not an api call to the index method. All api urls start with "/api". Should I do this using mod_rewrite or can Flask handle this natively? from flask import Flask app = Flask(__name__,…
n00dl3
  • 21,213
  • 7
  • 66
  • 76
1
vote
1 answer

Why can't apache see my python module?

I am running a Python 3.4 virtualenv on Ubuntu 14.04 with mod_wsgi in apache 2.4. For some reason, apache cannot see the pyodbc.cpython-34m.so module (which, of course, lacks a .py extension). The module is within my virtualenv site-packages…
user3079064
  • 109
  • 1
  • 7
1
vote
1 answer

Unable to understand the correct way of installing apache2 on ubuntu

I want to install mod_wsgi package which provides an Apache module that iimplements a WSGI compliant interface to host python-based applications on top of the Apache server. But for that apache should be installed on the ubuntu machine. I am new to…
akg
  • 670
  • 10
  • 30