用于生成示例数据的django应用程序
eadred的Python项目详细描述
eadred是一个用于生成示例数据的django应用程序。
为什么?下面是我们正在解决的用例:
用例1:贡献者
Mildred wants to contribute to your Django project, but your Django project is non-trivial and out of the box it’s not very usable because it needs data.
However, you’re using eadred, so in your setup documentation, you have a one-liner that generates all the sample data Mildred needs to start hacking immediately.
用例2:引导
Willhelm wants to set up an instance of your Django project. It requires certain non-trivial initial data to be in place before it works.
However, you’re using eadred, so in your setup documentation, you have a one-liner that generates all the initial data needed.
用例3:大量随机数据
Phylida is a hacker on your Django project and trying to fix bugs with a section of code that requires large amounts of data—say it’s one of those things that graphs data sets or something.
You’re using eadred, so it’s a one-liner to generate a large set of initial data.
“等等,使用django和fixtures很容易解决用例1和用例2!“
我认为fixture适合于特定的用例,其中您的模型 没有变化,你有一些贡献者喜欢加入 用于生成初始装置的数据。既然这么说了,我就不用 固定装置。
eadred允许您使用模型以编程方式生成数据。 制造商,工厂,固定装置,随机种子,无论你需要什么。
此外,eadred还提供库函数来生成 数据更简单。
项目详细信息
- 代码:
- http://github.com/willkg/django-eadred
- 文档:
- http://django-eadred.rtfd.org/
- 问题跟踪器:
- https://github.com/willkg/django-eadred/issues
- 许可证:
- BSD 3条款;请参见许可文件