这是一个django应用程序,它试图在django框架中消除烦人的事情。

django-annoying的Python项目详细描述


功能:

  • render_to decorator - Reduce typing in django views.
  • signals decorator - Allow using signals as decorators.
  • ajax_request decorator - Returns JsonResponse with dict as content.
  • autostrip decorator - Strip form text fields before validation.
  • get_object_or_None function - Similar to get_object_or_404, but returns None if the object is not found.
  • get_config function - Get settings from django.conf if exists, return a default value otherwise.
  • AutoOneToOne field - Creates related object on first call if it doesn’t exist yet.
  • HttpResponseReload - Reload and stay on same page from where request was made.
  • StaticServer middleware - Instead of configuring urls.py, just add this middleware and it will serve you static files.
  • JSONField - A field that stores a Python object as JSON and retrieves it as a Python object.

安装说明:

  • Copy the “annoying” directory to your Django project or put it in your PYTHONPATH.
  • You can also run “python setup.py install”, “easy_install django-annoying”, or “pip install django-annoying”.

下载:

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

推荐PyPI第三方库


热门话题
java在“for语句”中打印数组   使用jaxb外部绑定自定义时发生java错误   jdbc如何在Java(ProcessBuilder)中创建GlassFish的连接池   java正在尝试打印名称   java在Spring表达式语言中使用正则表达式提取子字符串   java如何将字符串流式传输到另一个类   jakarta ee ResourceBundle来自Java/Struts和replace表达式   tomcat支持java的可能原因。网SocketInputStream。socketRead0   java无法从joda dateTime对象中删除毫秒   java永远隐藏导航栏   具有更多字段的java ItemizeOverlay   使用jsptag的java搜索记录   java如何在Android Q中检查互联网连接?   java如果1是标准的EOF字节,为什么DataInputStream会这样做?   线程环境中的多线程mongodb java客户端断开连接   java正则表达式中的非捕获组   java疯狂拍卖定制售价   java Mybatis自动映射以支持dot   java在线获取原始格式的JSON URL   java意外字符“ï”,使用Jackson解析JSON