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字符串中获取RATE的值   java ANT在哪里输出编译器错误?   在java中,while循环在何处启动对象   javacom。谷歌。格森。内部的LinkedTreeMap无法强制转换到我的类   java单选按钮。isSelected()方法未返回正确的响应   嵌入式系统中applet中的java相对码基字段   如何在eclipse中将Java应用程序附加到jvm探查器?   java为什么Android应用程序崩溃?   在java中拖放上传后保持文件夹结构   爪哇多领导人选举问题   java Springs RestTemplate如何处理postForEntity()中的错误响应   Java如何用前导零递增整数字符串?   java Android将文本作为图像共享给其他应用程序   Java搜索替换   java isDirectory()不适用于UNIX目录   java我们可以得到显示测试类是否通过或失败的TestNG报告吗   Java类对象排序和分组   简单Java幂递归   java在处理MethodArgumentNotValidException时如何访问请求对象?