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

problem with running jpype with mod_python

As Python's urllib module is too slow, I'm using Java code wrapped with JPype in my web site. When I tested my web site with Django web server, there was no problem. However when I switched the web server to apache2 + mod_python, following error…
user433498
  • 11
  • 1
0
votes
1 answer

error on running my application in Django with mod_python

I have win32,python2.5,django1.2, apache2.2, and mod_python3.3.1 I have installed properly mod_python. Now my application name is myapp.setting which path is c:\myapp.setting. In myapp.settings my file is myapp.settings\url.py,settings.py etc. now…
rohitbansal2009
  • 31
  • 1
  • 1
  • 6
0
votes
1 answer

mod_python.publisher always gives content type 'text/plain'

I've just set up mod python with apache and I'm trying to get a simple script to work, but what happens is it publishes all my html as plain text when I load the page. I figured this is a problem with mod_python.publisher, The handler I set it too.…
The.Anti.9
  • 43,474
  • 48
  • 123
  • 161
0
votes
2 answers

How do you run Trac on a public server?

Since the TFS is too big for our project, we want to use subversion and Trac. The hosting environment is Windows 2003 and IIS. There are some options: Run tracd Run Apache with mod_python Run tracd with AJP Protocol and the isapi-redirector We…
0
votes
0 answers

Can mod_python respond to /user/123/doc/456/ style URLs?

We're using mod_python for most of our scripts. Now we're being asked to implement an API that accesses URL's like: http://example.com/app/user/123/doc/456 We'd like to handle this in our existing framework. But usually mod_python is invoked…
Andomar
  • 232,371
  • 49
  • 380
  • 404
0
votes
1 answer

WSGI Python adapter to test FastCGI: Error starting WSGI server

When I'm trying to run the WSGI Python script to test FastCGI from this tutorial: #!/usr/bin/env python # -*- coding: UTF-8 -*- from cgi import escape import sys, os from flup.server.fcgi import WSGIServer def app(environ, start_response): …
Peter G.
  • 7,816
  • 20
  • 80
  • 154
0
votes
1 answer

How to run a Python script upon button click using mod_python without changing browser window

I am using mod_python publisher which is set up and working fine. It allows me to run a Python file in my browser and this Python file has HTML embedded in it. I have defined a click-able image by input type = "image" onclick = "some action". When I…
0
votes
2 answers

mod_python ignoring shebang and using Python 2 instead of 3

I'm trying to run a script in the browser. I installed mod_python for running web-based applications on the server and set a shebang in my script: #!/usr/bin/env python3 # -*- coding: UTF-8 -*- import sys def index(): print ("Content-type:…
Artem Chernov
  • 856
  • 2
  • 8
  • 26
0
votes
1 answer

migrating from mod_python into mod_wsgi (multiple projects)

After upgrade to jessie my django stops working. I found that problem is in mod_python, so I decided that this is good reason to migrate to mod_wsgi. I read this but i'm not sure what to do if i got more than one project: I got few projects in…
Tomasz Brzezina
  • 1,452
  • 5
  • 21
  • 44
0
votes
2 answers

Python Syntax Incorrect

I am a novice with Python. I am trying to output a first initial last name for an email address. Such as: John Doe jdoe@domain.com I am using the following Python: primary_mail = '%(givenname)s'[0:1]%(surname)s@%(domain)s But when it outputs I…
0
votes
3 answers

Inserting language characters in Django

I am following the link http://code.google.com/p/django-multilingual-model/ Basically i am trying to insert hindi characters into mysql db I have created the files in the test directory as in the above said link and using django version 1.1 an…
Hulk
  • 32,860
  • 62
  • 144
  • 215
0
votes
1 answer

Mod_python on django and debug variable

I have a problem with my django application. On django developer server its work perfect, but when I switch it to apache something strange happening. Lets check the code: class Criteria(models.Model): district = models.ManyToManyField(District,…
RykoS
  • 1
0
votes
1 answer

ubuntu 15.04 python module telnetlib

I need some help with my new Ubuntu 15.04 VM. I tryied to install the pip module telnetlib3 but I got some errors: pip install telnetlib3 Downloading/unpacking telnetlib3 Downloading telnetlib3-0.2.3.tar.gz (96kB): 96kB downloaded Running…
eragon-2006
  • 307
  • 1
  • 4
  • 15
0
votes
1 answer

correct configuration for apache and mod_python

hi all, how you must configure Apache 2.2 or mod_python?, to avoid the following error: MOD_PYTHON ERROR ProcessId: 5399 Interpreter: '127.0.1.1' ServerName: '127.0.1.1' DocumentRoot: '/var/www' URI: …
Ricardo Rod
  • 8,453
  • 9
  • 27
  • 39
0
votes
2 answers

Can you use mod_python with JBoss?

Anyone know whether it is possible to put mod_python under JBoss like you can Apache HTTPD? Given that JBoss has Tomcat inside it would seem to be a reasonable thing to do. If not mod_python is there any python support under JBoss which will keep…
Simon
  • 78,655
  • 25
  • 88
  • 118