django utils是一个模块,其中包含一些标准django安装中未包含的方便实用程序

django-utils2的Python项目详细描述


特拉维斯状态:

https://travis-ci.org/WoLpH/django-utils.png?branch=master

覆盖范围:

https://coveralls.io/repos/WoLpH/django-utils/badge.png?branch=master

django utils是一个小型django助手函数、实用程序和 使公共模式更短更容易的类。这决不是 完整的收藏,但它在过去对我很有用,我会 继续延伸。

例如:

  • Enum based choicefields
  • Models with automatic __str__, __unicode__ and __repr__ functions based on names and/or slugs using simple mixins.
  • Models with automatic updated_at and created_at fields
  • Models with automatic slugs based on the name property.
  • Iterating through querysets in predefined chunks to prevent out of memory errors

库依赖于python utils库。

文档位于:http://django-utils-2.readthedocs.io/en/latest/

安装

要安装:

  1. Run pip install django-utils2 or execute python setup.py install in the source directory
  2. Add django_utils to your INSTALLED_APPS

如果要运行测试,请运行py.test(tests/requirements.txt中的需求)

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何从ImageIO中排除特定的TIFF读取器?   JavaJMockit和passbyreference。我们中一定有一个人错了(可能是我!)   java Android camera2放弃了牛轧糖的表面,但在棉花糖上工作   java按字符串中出现的顺序对字符数组进行排序   如何获取Groovy生成的java源代码   java无法使用AutoIT和Selenium Webdriver在所需位置/文件夹保存图像   java为什么我的冒泡排序代码会打印出这些奇怪的东西?   java JAXB:typesafeEnumMemberName=“generateName”是否可自定义?   Java编程输入:今天是星期天输出:星期天是今天   java不理解首个OOAD书的吉他示例   java如何从JformattedTextfield检索货币格式值   java可以从相同的源代码生成功能不同的可执行文件吗?