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

(django initial setup) Django installation is redirecting all traffic to django page, fix?

I'm a complete newbie to Django. I've been trying to get it working on my Ubuntu server. everytime someone my server, it redirects to the "Congratulations on your first Django-powered page." It completely ignores the index.html file in the www…
0
votes
1 answer

Looking for wsgi way of processing forms like mod_python Publisher

In mod_python Publisher, I could write a file loader, (uploader.py in this example) using code like this: def index(): html = '''
0
votes
0 answers

Cannot run .py files outside of cgi-bin

I'm at my wits end trying to figure out why I can't run .py files outside of my cgi-bin directory. I installed mod_python, and was able to successfully run .py files after setting up my sites-available/default file as follows in…
0
votes
3 answers

Mod_Python + Django library import issue

I recently had a site that was running perfect for months, all of a sudden it decided to dump itself for no approximate reason. I am running django + mod_python + apache, and the system decided it was time to start ignoring the import of the pycurl…
nwhiting
  • 103
  • 6
0
votes
1 answer

Mod_python not getting GET variables

I have standard 13.10 Ubuntu. Running Apache 2 and mod_python. Both installed using apt-get. I'm trying to pass a GET variable from the client to the server, execute python script and then return a result. Here is my ApacheConfig (Default plus code…
Darthyogurt
  • 127
  • 2
  • 11
0
votes
3 answers

Running Different Django Versions But Sharing Authentication

Brand new to django. We have a legacy django project using django 0.96x that does authentication, ldap, etc., and it's pretty involved so we don't want to rewrite that code. We want to add a forum solution (off the shelf) but all of the ones I've…
Rob
  • 4,093
  • 5
  • 44
  • 54
0
votes
2 answers

Downgrade my project from django 1.5 to 1.4

I have a project in django 1.5 and I have to deploy it with mod_python. Unfortunately, I have seen that the module has been removed since 1.5. I know that there are another way such as mod_wsgi, gunicorn.. but could i downgrade my project to the…
Betelgeuse
  • 682
  • 2
  • 8
  • 27
0
votes
1 answer

mod_python with bottle framework on apache 2.2

I'm using Apache 2.2 Python 2.5 and want to use the bottle micro-framework. The problem here is, that i need to install mod_wsgi to run it with my apache, but there are no binary files for windows with Python 2.5 support. So i tried to compile it…
uloco
  • 2,283
  • 4
  • 22
  • 37
0
votes
1 answer

How to call main() of a python script with arguments from mod_python.publisher?

I use a mod_python publisher function which calls the main() function of another python script with a custom built argv list. When I execute the publisher script from shell command line it works. But when I tried it through apache2 with mod_python,…
user236495
0
votes
1 answer

mod_python and getting the QUERY_STRING using env_vars()

I am having some problems with some code, trying to get the QUERY_STRING but when I look at the errors in the console its coming back with an internal Error 500 which seems to be caused by the line getReqStr = env_vars['QUERY_STRING'] Anyone any…
CHRIS LEONARD
  • 69
  • 1
  • 1
  • 8
0
votes
2 answers

Django mod_python deployment error

I'm trying to deploy a django project via mod_python and I keep getting an error saying a handler module is missing. My apache config: SetHandler python-program PythonHandler django.core.handlers.modpython …
Swizec Teller
  • 2,322
  • 1
  • 19
  • 24
0
votes
1 answer

mod_python is not loading stackless Python

I have setup an Apache2 mod_python environment with stackless Python and it is working. And When I test the Python environment with sys.version, it shows 2.5.2 Stackless 3.1b3 060516 (python-2.52:76701, Dec 8 2009, 02:13:34) [GCC 4.2.4 (Ubuntu…
Devasia Joseph
  • 388
  • 4
  • 14
0
votes
1 answer

Implementation differences between mod_python and mod_wsgi

I have an webapplication that was originall implemented written with mod_python in mind. I have been able to port it to mod_wsgi, but I worry that there might be some subtle differences in the way that global variables or other features are…
ChrisGuest
  • 3,398
  • 4
  • 32
  • 53
0
votes
1 answer

Python + mod_wsgi/mod_python + Apache + user's public_html

I'm interested in making a pretty basic Python webapp, literally just a form that takes in some input, calls a Python function on that input, receives results returned from that function, and then uses web development trickery to make them look…
dmn
  • 965
  • 3
  • 13
  • 24
0
votes
1 answer

Getting Error when trying to setup mod_python

After installing mod_python and changing the /etc/apache2/sites-available/default file.I am getting following error when I try to run tail -f /var/log/apache2/error.log ai-System-Product-Name ws_code # tail -f /var/log/apache2/error.log Fatal…
tusharmakkar08
  • 706
  • 1
  • 12
  • 32