def handle(self, *args, **kwargs): with open(join(settings.DATA_DIR, 'config.yaml'), 'w') as f: yaml.dump(settings.CONFIG, f, width=80, indent=4, default_flow_style=False)