12
votes
2answers
13k views

Python for web development in Apache [closed]

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 ...
4
votes
4answers
1k views

django request.POST contains <could not parse>

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 ...
1
vote
2answers
2k views

Error while deploying Django on Apache

I have a small Django website which I am trying to run on an Apache 2.2 HTTP-Server. The application is running fine using "python manage.py runserver". Django Version: 1.0.2 final Python: 2.5 OS: ...
16
votes
5answers
9k views

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 ...
1
vote
5answers
1k views

Deploying django app on Apache mod_python

I've finished making a site in django called 'kazbah', and I'm trying to deploy. All the code for the kazbah site is in /home/git/DjangoProjects/kazbah and my httpd.conf looks like: <Location ...
13
votes
11answers
11k views

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 ...
6
votes
3answers
2k views

Getting rid of Django IOErrors

I'm running a Django site (via Apache/mod_python) and I use Django's facilities to inform me and other developers about internal server errors. Sometimes errors like those appear: Traceback (most ...
6
votes
3answers
12k views

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 ...
3
votes
3answers
1k views

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

mod python, get POST parameters from request object

Is there any basic example that shows how to get POST parameters from the request in mod python custom handler. I have no trouble in GET requests, where I get my arguments from request.args, BUT if ...
0
votes
2answers
241 views

Configure Apache to recover from mod_python errors

I am hosting a Django app on Apache using mod_python. Occasionally, I get some cryptic mod_python errors, usually of the ImportError variety, although not usually referring to the same module. The ...