HUE-1673 [core] Update desktop/settings.py to sync with django 1.4