Refactored defs and variables in DjangoSettingsManager, added missing saving of files