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

Mod_Python: Publisher Handler vs PSP Handler

I've been testing out Mod_python and it seems that there are two ways of producing python code using:- Publisher Handler PSP Handler I've gotten both to work at the same time however, should I use one over the other? PSP resembles PHP a lot but…
Xplane
  • 820
  • 2
  • 8
  • 24
0
votes
1 answer

Django mod_python logging issues

I'm trying to debug my view file in Django. I'm using Django 1.3 with mod_python on server. How can I see some out from my view file. I already try to use standart logging configuration LOGGING = { 'version': 1, 'disable_existing_loggers':…
user1456308
0
votes
1 answer

Stackless python stopped mod_python/apache from working

I installed stackless pyton 2.6.2 after reading several sites that said its fully compatible with vanilla python. After installing i found that my django applications do not work any more. I did reinstall django (1.1) again and now im kind of lost.…
Odif Yltsaeb
  • 5,575
  • 12
  • 49
  • 80
0
votes
1 answer

How to co host django app with php5 on apache2 with mod_python?

I have django+python+apache2+mod_python installed hosted and working on ubuntu server/ linode VPS. php5 is installed and configured. We don't have a domain name as in example.com. Just IP address. So my apache .conf file looks like this …
Ankur Gupta
  • 2,284
  • 4
  • 27
  • 40
0
votes
2 answers

How to setup mod_python configuration variables?

I'm running a Python server with mod_python, and I've run into some issues with configuration variables. This is actually two questions rolled into one, because I think they are highly related: I need a way to configure variables that will be…
Dan Lew
  • 85,990
  • 32
  • 182
  • 176
0
votes
1 answer

set post data python apache

I am trying to, for a login script, set a session ID using POST in python on apache. However, there doesn't appear to be any method to doing it as far as I can see other than just doing a redirect. Also, now that I have a session ID, I can use any…
matts1
  • 857
  • 1
  • 9
  • 20
0
votes
1 answer

setting and reading cookies in mod_python (apache)

I've seen plenty of things explaining how to read and write cookies, however, I have no clue about how to do it in mod_python in apache. I tried putting this at the start of my HTML code, but it says to put it in the HTTP header. How do I do…
matts1
  • 857
  • 1
  • 9
  • 20
0
votes
1 answer

Apache, SVN and mod_python

We are using Apache 2.2 to server SVN (1.6.2) repositories on Windows. We use SSPI for authentication, and that's working. We have a number of different repositories, and use SVNParentPath in the httpd.conf to serve them. Something like:
Simon D
  • 4,150
  • 5
  • 39
  • 47
0
votes
2 answers

Django apache mod-python setup (vista)

I am trying to setup my development environment on my local vista machine (django+apache+mod-python+postgres) and for some reason I can't load the settings. Everything works on the built-in server but not under apache. Here is my…
Eeyore
  • 2,126
  • 7
  • 33
  • 49
0
votes
3 answers

Calling a Python script from a webpage

I've searched around for a while but I can't find a concise explanation of how to do what I want. I have a fairly complex program which I'd like to make a simple web interface for. Ideally there'll be a couple of text fields, "foo" and "bar" on a…
Ivy
  • 3,393
  • 11
  • 33
  • 46
0
votes
1 answer

Mod_Python requires Python Handler for every file?

With mod_python I am wondering why I have to create a PythonHandler in order to get a URL to parse Python code. If you see below, if I do not have a file called jrpython.py it will not work. Is there a way to make all of my .py files just run…
JREAM
  • 5,741
  • 11
  • 46
  • 84
0
votes
3 answers

maintaining user authentication if i have some web pages on mod_python and some on mod_wsgi

I have a web application written in raw python and hosted on apache using mod_python. I am building another web application which is django based and will be hosted on same server using mod_wsgi. Now, the scenerio is such that user will login from…
Sudip
  • 523
  • 2
  • 7
  • 14
0
votes
1 answer

How to get mod_python site to allow clients to cache selected image content?

I have a small dynamic site implemented in mod_python. I inherited this, and while I have successfully made relatively minor changes to its content and logic, with HTTP caching I'm out of my depth. The site works fine already, so this isn't "the…
timday
  • 24,582
  • 12
  • 83
  • 135
-1
votes
1 answer

How can I pass parameters to python?

The python parameter is not passed. I think cgi.FieldStorage () does not seem to work. What settings should I add? cgi.html :
First Name:
Last Name:
kyoungwon cho
  • 67
  • 1
  • 8
-1
votes
1 answer

how can I run this code as a webpage in python-apache-ubuntu server?

This code snippet works in a normal python interpreter, just a simple binary search. What do I need to add/change to this code to run it as a webpage ? def…
deepMurtix
  • 37
  • 3
1 2 3
19
20