January 2009
4 posts
Testing secure requests with Django
There’s no information in the Django testing documentaiton that explains how you can make a request appear secure (https protocol). It took a little bit of digging through the source code to figure out how to do it, and it’s actually quite simple. You just have to pass a keyword argument when you create your Client object (or when you do your get/post) setting wsgi.url_scheme to...
Disable Front Row Keyboard Shortcut
The Command-Escape keyboard shortcut to activate FrontRow has always annoyed me. I always end up hitting it when trying to cycle through windows with Command-`. I don’t know why I didn’t look for a way to disable it sooner. It’s pretty simple, actually. A quick Google search turned up this post.
It’s in the System Preferences under Keyboard & Mouse. It’s...
MacPorts Django
I was very pleased to discover yesterday (quite by accident) that there’s a port for Django in MacPorts. Django’s now only a quick command line install for people on OS X now.
sudo port install py25-django
Capistrano sudo prompt problem
I just ran into an issue with Capistrano where it didn’t capture the password prompt when using the sudo invocation. The fix was pretty simple, but a bit difficult to find because most info on Capistrano is extremely Rails related and not geared to people writing their own tasks. The fix was to add this line to my capfile:
set :sudo, 'sudo -p Password:'
This may be fixed in a later...