Python Web 应用程序框架 Django 1.10.1 发布,bug修复

Django 1.10.1 发布了,Django 是 Python 编程语言驱动的一个开源模型-视图-控制器(MVC)风格的 Web 应用程序框架(腾云科技TY300.COM)。使用 Django,我们在几分钟之内就可以创建高品质、易维护、数据库驱动的应用程序(勤快学QKXue.NET)。

该版本主要是修复1.10中的bug。更多详细信息,可参看完整发布说明

Bug修复:

Fixed a crash in MySQL connections where SELECT @@SQL_AUTO_IS_NULL doesn’t return a result (#26991).
Allowed User.is_authenticated and User.is_anonymous properties to be compared using ==, !=, and | (#26988, #27154).
Removed the broken BaseCommand.usage() method which was for optparse support (#27000).
Fixed a checks framework crash with an empty Meta.default_permissions (#26997).
Fixed a regression in the number of queries when using RadioSelect with a ModelChoiceField form field (#27001).
Fixed a crash if request.META[‘CONTENT_LENGTH‘] is an empty string (#27005).
Fixed the isnull lookup on a ForeignKey with its to_field pointing to a CharField or pointing to a CharField defined with primary_key=True (#26983).
Prevented the migrate command from raising InconsistentMigrationHistory in the presence of unapplied squashed migrations (#27004).
Fixed a regression in Client.force_login() which required specifying a backend rather than automatically using the first one if multiple backends are configured (#27027).
Made QuerySet.bulk_create() properly initialize model instances on backends, such as PostgreSQL, that support returning the IDs of the created records so that many-to-many relationships can be used on the new objects (#27026).
Fixed crash of django.views.static.serve() with show_indexes enabled (#26973).
Fixed ClearableFileInput to avoid the required HTML attribute when initial data exists (#27037).
Fixed annotations with database functions when combined with lookups on PostGIS (#27014).
Reallowed the {% for %} tag to unpack any iterable (#27058).
Made makemigrations skip inconsistent history checks on non-default databases if database routers aren’t in use or if no apps can be migrated to the database (#27054, #27110, #27142).
Removed duplicated managers in Model._meta.managers (#27073).
Fixed contrib.admindocs crash when a view is in a class, such as some of the admin views (#27018).
Reverted a few admin checks that checked field.many_to_many back to isinstance(field, models.ManyToManyField) since it turned out the checks weren’t suitable to be generalized like that (#26998).
Added the database alias to the InconsistentMigrationHistory message raised by makemigrations and migrate (#27089).
Fixed the creation of ContentType and Permission objects for models of applications without migrations when calling the migrate command with no migrations to apply (#27044).
Included the already applied migration state changes in the Apps instance provided to the pre_migrate signal receivers to allow ContentType renaming to be performed on model rename (#27100).
Reallowed subclassing UserCreationForm without USERNAME_FIELD in Meta.fields (#27111).
Fixed a regression in model forms where model fields with a default that didn’t appear in POST data no longer used the default (#27039).

时间: 2024-08-28 06:11:15

Python Web 应用程序框架 Django 1.10.1 发布,bug修复的相关文章

如果你不知道这11款常见的Web应用程序框架 就说明你out了

本文推荐了11款常见的Web应用程序框架,并列出了相关的学习资料和下载文档.如果对这些项目还不熟悉,就赶紧学起来吧~ Rails Rails是Ruby on Rails的简称,是一款开源的Web应用框架,采用Ruby语言,其设计原则是“不做重复的事”和“惯例优于设置”,是一款更符合实际需要而且更加高效的Web开发框架.Rails是一个全栈式的MVC框架,使用它可以实现MVC模式中的各个层次,并使它们无缝地协同运转起来.除此以外,还有编写更少的代码.零周转时间等优点. 代码托管地址:https:/

浅谈Python Web的五大框架

说到Web Framework,Ruby的世界Rails一统江湖,而Python则是一个百花齐放的世界.各种micro-framework.framework不可胜数. 尽管还有一大脚本语言PHP也有不少框架,但远没有Python这么夸张,也正是由于Python Web Framework(Python Web开发框架,以下简称Python框架)太多.所以在Python社区总有关于Python框架孰优孰劣的话题,讨论的时间跨度甚至长达3-5年. Python这么多框架,能挨个玩个遍的人不多,坦白

python web入门程序

python2.x web入门程序 #!/usr/bin/python # -*- coding: UTF-8 -*- # 只在python2.x 有效 import os #Python的标准库中的os模块包含普遍的操作系统功能 import re #引入正则表达式对象 import urllib #用于对URL进行编解码 from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler #导入HTTP处理相关的模块 #自定义处理程序,

简陋的 ASP.NET CORE 单页Web应用程序“框架”

我对ASP.NET CORE了解不多,不知道是不是重复造轮子,也或者什么也不是,这个Demo是这样的: 1.非常简单或者说原始:2.将单页Web应用增加了一个页(Page)概念(相当于MVC的 View) 3.Ajax无刷新跳转到新 Page,并支持H5浏览器刷新 Page.前进后退到其它 Page4.类 MVC 开发模式,Action 提供 Data,Js 渲染 View,Data 和 View 开发分离 完整代码可以访问 https://github.com/fonshen/Fonshen.

jQuery Mobile 移动 web 应用程序框架

在这里我们主要讲一下如何引用jQuery Mobile(引用了jQuery Mobile,你就能引用jQuery Mobile里已经封装好的代码,让开发更加快捷简单) 从 CDN 引用 jQuery Mobile(推荐)——也就是以http外部链接调用jQuery Mobile库 从 jQuerymobile.com 下载 jQuery Mobile 库 下载jQuery Mobile库网址:http://jquerymobile.com/download/ 下载的库里包含着jQuerymobi

Python Web 框架 Django

Django 是 Python 编程语言驱动的一个开源模型-视图-控制器(MVC)风格的 Web 应用程序框架.使用 Django,我们在几分钟之内就可以创建高品质.易维护.数据库驱动的应用程序. Django 框架的核心组件有: 用于创建模型的对象关系映射 为最终用户设计的完美管理界面 一流的 URL 设计 设计者友好的模板语言 缓存系统

Python最火框架入门了吗?微型框架 Flask与Web框架Django示例!

Flask Python 微型的Web 框架,以Jinja2 模板引擎与Werkzeug WSGI工具箱为基础. Flask使用简便,使用extension增加其他功能.Flask没有窗体验证工具.默认使用的SQL.但是,Flask保存了扩增性,能够利用Flask-extension加入ORM.文件上传窗体验证工具.各种开放式身份验证技术等这些功能. 特性: 示例: 启动: 非常流行的一个Python必学框架. Django Python 语言驱动的一个开源模型-视图-控制器(MVC)风格的 W

Python Web 开发的十个框架【转载】

Python 是一门动态.面向对象语言.其最初就是作为一门面向对象语言设计的,并且在后期又加入了一些更高级的特性.除了语言本身的设计目的之外,Python标准 库也是值得大家称赞的,Python甚至还自带服务器. 其它方面,Python拥有足够多的免费数据函数库.免费的Web网页模板系统.还有与Web服务 器进行交互的库.这些都可以设计到你的Web应用程序里面. 这篇文章列举了十个Python Web应用开发框架,不过因为Django似乎人尽皆知的样子,没有列在文中.. CubicWeb Cub

python web server gateway interface (wsgi ) notes

前言: 注:如果需要得到支持批Python3.x以及包含了勘误表,附录,和说明的更新版规范,请查看PEP 3333 摘要: 这篇文档详细说明了一套在web服务器与Python web应用程序(web框架)之间的已提出的标准接口,从而方便web应用在各种web服务器之间的移植. 理论和目标 Python世界目前拥有各种各样的web应用框架,仅举几例比如 Zope, Quixote, Webware, SkunkWeb, PSO, and Twisted Web 等[1],对于新手来说面对如此多的选