Whew. I spent quite a bit more time debugging this problem than it really should have taken. Django just wasn’t playing nice with the latest Lighttpd pre-release.
Long story short
Don’t use the prerelease, use the most recent 1.4.x stable. Save yourself hours of cursing and trace-debugging.
Analysis
Lighttpd had the following problems:
- No request PATH_INFO. Django hates that. I hacked my testing version of Django to get past that, but no luck because.
- Lighttpd just wouldn’t accept the response. I put in trace logs and found that my app was sending a perfect response, but Lighty just wouldn’t listen to it.
[tags]lighhtpd,django,python[/tags]
I’ve always disliked having to write __repr__ methods for my classes. It isn’t hard, it is just tedious. In Django, it is especially important to make them, since the admin pages use that method when listing objects from the data model.
Usually I am satisfied by the commandline tools available in OSX. However, one itch that has been unfulfilled for quite a while since my permanent conversion to the Mac is the lack of “pgrep” and “pkill”, two of my favorite time savers from Linux.
I’m using
As part of the Django storefront app I am writing, I need to send multipart messages. The base Django mail functionality doesn’t seem to do this, at least not with my version of Python. It could be a Python bug (actually I am pretty sure it is a bug, and I’m going to followup on that as well) but I need it solved now, not at the next point release of the language.
After my rant yesterday, it is time to share another programming tool I find absolutely indispensable.
Recent Comments