一次加载多个灯具 [英] Load Multiple Fixtures at Once

查看:93
本文介绍了一次加载多个灯具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

反正有没有要加载一个灯具并要加载多个灯具?

Is there anyway to load one fixture and have it load multiple fixtures?

理想情况下,我想输入:

I'd ideally like to type:

python manage.py loaddata all_fixtures

并具有加载所有数据的功能,而不必键入所有内容.这可能吗?

And have that load all of the data instead of having to type everything. Is this possible?

推荐答案

使用$ python manage.py loaddata myfixtures/*.json会起作用,因为Bash会将通配符替换为匹配文件名的列表.

Using $ python manage.py loaddata myfixtures/*.json would work as Bash will substitute the wildcard to a list of matching filenames.

这篇关于一次加载多个灯具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆