commands: Fix a conditional UnboundLocalError
Security release: Update Django requirement to 1.5.6

https://www.djangoproject.com/weblog/2014/apr/21/security/