Questions tagged [mod-python]

Mod_python is an Apache module that embeds the Python interpreter within the server.

Mod_python is an Apache module that embeds the Python interpreter within the server. With mod_python you can write web-based applications in Python that will run many times faster than traditional CGI and will have access to advanced features such as ability to retain database connections and other data between hits and access to Apache internals.

Currently mod_python is not under active development. This does not mean that it is "dead" as some people have claimed. It smiply means that the code and the project are mature enough when very little is required to maintain it.

Projects website:

Current State of Mod_Python

289 questions
7
votes
1 answer

Django on Apache web server 'dict' object has no attribute 'render_context'

I'm having a bit of a problem, I uploaded my Django project to a webserver running apache, mod_python, and django. On the computer I developed on the following works fine nameBox = getNamesBox().render(locals()) - def getNamesBox(): users =…
John Lotacs
  • 1,184
  • 4
  • 20
  • 34
6
votes
3 answers

Mod_python error: ImportError: Could not import settings

Trying to get Django to work with Apache, and I'm getting the following error: ImportError: Could not import settings 'MyDjangoApp.settings' (Is it on sys.path? Does it have syntax errors?): No module named MyDjangoApp.settings My Django app is…
R0b0tn1k
  • 4,256
  • 14
  • 46
  • 64
6
votes
1 answer

Access-Control-Allow-Origin: * not working?

Classic "Origin ... is not allowed by Access-Control-Allow-Origin" problem. Two machines serve contents for the same website. When machine A does a $('#main').load('link_to_resource_on_B') via jquery, machine B serves up the content with…
user1170717
  • 61
  • 1
  • 1
  • 2
6
votes
2 answers

Making Python scripts work on MAMP

I'm using mamp server for testing out all my web pages. I'm new to python. I'm able to run a script in python interpreter that will normally print a hello world. print "Hello World!" So i used the same line in a file with name test.py . So how…
RaviTeja
  • 988
  • 3
  • 13
  • 20
5
votes
4 answers

deploying a WSGI application on mod_python

I wrote a WSGI application which I need to deploy to a server, however I've been given a server that already has mod_python installed. I am not allowed to remove mod_python since there are some mod_python applications running on it already. One…
user868459
  • 288
  • 1
  • 3
  • 8
5
votes
2 answers

Why can't I disable .htaccess in Apache?

This is the opposite problem from most about which I have read. I am running Ubuntu 8.04 on an Amazon instance with Apache 2.2.8 and I can't figure out why setting AllowOverride to None for root doesn't stop my .htaccess file from being included. I…
Mitch
  • 2,350
  • 7
  • 29
  • 48
5
votes
1 answer

mod_python for python 2.7

I recently downloaded python 2.7 on my computer (x64) and I would like to install mod_python for it (I have apache 2.2), however, I can't find a mod_python release supporting python 2.7. Has development stopped? If so, what should I use instead?
T0xicCode
  • 4,583
  • 2
  • 37
  • 50
5
votes
2 answers

Matplotlib and WSGI/mod_python not working on Apache

Everything works as supposed to on the Django development server. In Apache, the django app also works except when matplotlib is used. Here's the error I get: No module named multiarray. Exception Type: ImportError Exception Value: No module…
Luiz C.
  • 746
  • 11
  • 22
5
votes
2 answers

How do you trace 500 server errors with Apache + mod_python + Django?

Possible Duplicate: Django Unhandled Exception I'm randomly getting 500 server errors and trying to diagnose the problem. The setup is: Apache + mod_python + Django My 500.html page is being served by Django, but I have no clue what is causing…
Andrew C
  • 1,036
  • 2
  • 9
  • 19
5
votes
1 answer

apache server cant find static files in Django project

I'm trying to upload my code on an apache server using mod_python. I have tried a lot but the server is not able to access my static files (all my images, js and css). Here are my Virtualhost settings: ServerName…
user_2000
  • 1,103
  • 3
  • 14
  • 26
5
votes
4 answers

django request.POST contains

I am having a django form to get the username,password. when the user posts data, i see that the post dictionary contains the following(traceback), Traceback (most recent call last): File…
Vivek S
  • 5,384
  • 8
  • 51
  • 72
4
votes
6 answers

mod_php vs mod_python

Why mod_python is oop but mod_php is not ? Example :We go to www.example.com/dir1/dir2 if you use mod_python apache opens www/dir1.py and calls dir2 method but if you use php module apache opens www/dir1/dir2/index.php
Oguz Bilgic
  • 3,392
  • 5
  • 36
  • 59
4
votes
3 answers

How do I modify sys.path from .htaccess to allow mod_python to see Django?

The host I'm considering for hosting a Django site has mod_python installed, but does not have Django. Django's INSTALL file indicates that I can simply copy the django directory to Python's site-packages directory to install Django, so I suspect…
Kyle Cronin
  • 77,653
  • 43
  • 148
  • 164
4
votes
1 answer

404 error while executing .py file in cgi-bin using apache2

previously i had error in installing apache2 for python, this is the link I thought i should continue there but right now i'm getting a new error so posting it as a new one this is what the problem is I have placed a file hello.py having…
Bhuvan raj
  • 413
  • 3
  • 8
  • 17
4
votes
1 answer

Download Multiple Files in a Single Request (jQuery/Python)

I need to create a way for a user to open a web page, choose from a list of checkboxes in a form, and once the form is submitted, download all of those files together. Here are the restrictions imposed on me by the client: Platform is primarily…
JoeLinux
  • 4,198
  • 1
  • 29
  • 31
1
2
3
19 20