Bug fix - improperly sscoped variable 'settings_dict' when settings.USE_TZ = True