Google Chart API
Google have released their chart API. Here’s a few alternatives for Python:
urllib2.URLError: urlopen error unknown url type: https
Note to self: for the following to work on a Mac with fink’s python
xml = urllib2.urlopen("https://api.del.icio.us/v1/posts/recent").read()
Your python needs ssl support.
fink install python24-socket-ssl
Phew!
Internet • Programming • Python • Comments (0) • Trackbacks (0) • Permalink • Email this bit
Django technical_500_response error
I recently switched from the Django magic-removal branch to the trunk post-magic-removal. I was getting this bizarre error:
Mod_python error: "PythonHandler django.core.handlers.modpython"
Traceback (most recent call last):
File "/sw/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
result = object(req)
File "/Users/simonb/src/dj/trunk/django/core/handlers/modpython.py", line 157, in handler
return ModPythonHandler()(req)
File "/Users/simonb/src/dj/trunk/django/core/handlers/modpython.py", line 129, in __call__
response = self.get_response(req.uri, request)
File "/Users/simonb/src/dj/magic-removal/django/core/handlers/base.py", line 100, in get_response
File "/Users/simonb/src/dj/magic-removal/django/core/handlers/base.py", line 133, in get_technical_error_response
File "/Users/simonb/src/dj/trunk/django/views/debug.py", line 115, in technical_500_response
c = Context({
IndexError: list index out of range
Well, it took me a while to figure out. Notice that the directory name used for the Django distribution changes in the traceback - from “trunk” to “magic-removal”. After I had updated I had changed the directory name from magic-removal to trunk. Ah ha! So a quick “find -name ‘*.pyc’ -exec rm {} \;” got rid of the compiled code with the old paths names. Now, at least, the errors make sense.
Django • Python • Comments (0) • Trackbacks (0) • Permalink • Email this bit
Django Talk Video
Django • Python • Comments (0) • Trackbacks (0) • Permalink • Email this bit
Django and Rails Creators Talk Video and Audio
Snakes and Rubies Chicago, 3 Dec. 2005: The creators of Django and Rails each gave talks and discussed web frameworks. Download the video and audio here
Django • Programming • Python • Comments (0) • Trackbacks (0) • Permalink • Email this bit
Page 1 of 1 pages