Last night we ran into a slight problem. We are running Python 2.5 on our Macbook’s, but our server is running a very stable 2.4. No problem right? Well kind of.
The first problem we encountered is related to PEP 308. Someone who had written a RSS parsing plugin for Django, failed to mention that it minimally needed Python 2.5 to run correctly. But this is one of the greatest advantages of open source. I rolled up my sleeves and removed what the PEP calls conditional expressions. I’ve always referred to these as the Ternary operator [or operation]. Continue reading
I initially used this guide, but made some changes:
1) Downloaded Django-1.0.tar.gz from here.
2) Created and extracted the contents of the tar.gz:
tar xzf ~/Downloads/Django-1.0.tar.gz
3) Make the following soft-links:
ln -s ~/sandbox/Django-1.0/django django
sudo ln -s ~/sandbox/Django-1.0/django/bin/django-admin.py django-admin.py
Wow, its not every day you see a new command line interface that takes advantage of new online services. This one I just discovered will let you interact with your Google calendar.
I use Google calendar religiously for home and business when I am away form my day time job (don’t quit your day job!).
Gcalcli is written in Python as well. Which led me to find the Google data API for Python. Very nice!