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
142
votes
10 answers

Reducing Django Memory Usage. Low hanging fruit?

My memory usage increases over time and restarting Django is not kind to users. I am unsure how to go about profiling the memory usage but some tips on how to start measuring would be useful. I have a feeling that there are some simple steps that…
Andy Baker
  • 21,158
  • 12
  • 58
  • 71
83
votes
4 answers

Differences and uses between WSGI, CGI, FastCGI, and mod_python in regards to Python?

I'm just wondering what the differences and advantages are for the different CGI's out there. Which one would be best for python scripts, and how would I tell the script what to use?
Parker
  • 8,539
  • 10
  • 69
  • 98
19
votes
6 answers

Get the version of Django for application

I am starting a new (actually very old) project which I know is in Django. I am getting lost knowing the exact version of Django it has been build upon. Is there a way I can know the version of Django my application is running?
Prabesh Shrestha
  • 2,732
  • 4
  • 29
  • 44
16
votes
5 answers

Django Apache/mod_python Admin CSS not appearing with admin tables

I have Windows XP/Django/apache/mod_python working on localhost. All parts are working with the exception of the admin CSS not rendering. The admin works, but no html formatting. I've made additions in: settings.py INSTALLED_APPS …
Ana
14
votes
2 answers

Django newbie deployment question - ImportError: Could not import settings 'settings'

The app runs fine using django internal server however when I use apache + mod_python I get the below error File "/usr/local/lib/python2.6/dist-packages/django/conf/__init__.py", line 75, in __init__ raise ImportError, "Could not import…
Ankur Gupta
  • 2,284
  • 4
  • 27
  • 40
13
votes
2 answers

Python for web development in Apache

I've been playing with mod_python in apache2 which seems to work differently than python does in general - there's a bit different syntax and things you need to do. It's not very well documented and after a few days of playing with it, I'm really…
Mike
13
votes
11 answers

A good multithreaded python webserver?

I am looking for a python webserver which is multithreaded instead of being multi-process (as in case of mod_python for apache). I want it to be multithreaded because I want to have an in memory object cache that will be used by various http…
NeoAnderson
  • 397
  • 2
  • 4
  • 11
11
votes
3 answers

Converting from mod_python to mod_wsgi

My website is written in Python and currently runs under mod_python with Apache. Lately I've had to put in a few ugly hacks that make me think it might be worth converting the site to mod_wsgi. But I've gotten used to using some of mod_python's…
David Z
  • 128,184
  • 27
  • 255
  • 279
10
votes
2 answers

Serving static files with mod_wsgi and Django

I have a django application using mod_python, fairly typical configuration except that media files are being served by a (I know, not recommended) 'media' directory in the document root. I would like to test and maybe deploy with mod_wsgi but I…
unmounted
  • 33,530
  • 16
  • 61
  • 61
10
votes
7 answers

How to setup and run Python on Wampserver?

Can anyone help me to set up Python to run on Wampserver. From what I've read so far you would need to use a combination of Wampser, Python, mod_pyhton, and adjustment to the Apache http.conf file. I've tried it but i belive i am having conflict…
Chris Moguel
  • 191
  • 1
  • 2
  • 10
8
votes
3 answers

Setting up Python on Windows/ Apache?

I want to get a simple Python "hello world" web page script to run on Windows Vista/ Apache but hit different walls. I'm using WAMP. I've installed mod_python and the module shows, but I'm not quite sure what I'm supposed to do in e.g. http.conf…
Philipp Lenssen
  • 8,818
  • 13
  • 56
  • 77
8
votes
4 answers

How to send data via POST or GET in Mod_Python?

With JS, i send a AJAX post request. $.ajax( {method:"POST", url:"https://my/website/send_data.py", data:JSON.stringify(data), contentType: 'application/json;charset=UTF-8' On my Apache2 mod_Python server, I wish…
Mitchell van Zuylen
  • 3,905
  • 4
  • 27
  • 64
8
votes
2 answers

apxs:Error: Command failed with rc=65536

Centos 6.4, WHM 11.38.1 I'm having trouble trying to make mod_python work. I'm getting this error apxs:Error: Command failed with rc=65536 I've already tried custom_easyapache_modules. Also tried downloading the tar.gz and ./configure…
rzx10r
  • 134
  • 1
  • 1
  • 9
8
votes
0 answers

How to Compile Mod_Python 3.3.1 for Python 2.6 and Apache 2.2 on Windows?

I have no experience compiling code other than using Visual Studio's Build command. I am hoping we can create a step by step guide for compiling mod_python on windows. Please be as descriptive as possible. This is what I've done so far: Download…
John
  • 5,381
  • 4
  • 30
  • 26
8
votes
4 answers

Restarting a Django application running on Apache + mod_python

I'm running a Django app on Apache + mod_python. When I make some changes to the code, sometimes they have effect immediately, other times they don't, until I restart Apache. However I don't really want to do that since it's a production server…
ibz
  • 44,461
  • 24
  • 70
  • 86
1
2 3
19 20