发布于 2017-05-07 00:19:27 | 293 次阅读 | 评论: 0 | 来源: 网友投递

这里有新鲜出炉的Django 入门教程,程序狗速度看过来!

Django Python WEB开发框架

Django是一个开放源代码的Web应用框架,由Python写成。采用了MVC的软件设计模式,即模型M,视图V和控制器C。它最初是被开发来用于管理劳伦斯出版集团旗下的一些以新闻内容为主的网站的,即是CMS(内容管理系统)软件。并于2005年7月在BSD许可证下发布。这套框架是以比利时的吉普赛爵士吉他手Django Reinhardt来命名的。


Django 1.11.1 发布了,添加了一个小功能,并修复了 1.11 中的几个错误,具体如下:

  • Made migrations respect Index’s name argument. If you created a named index with Django 1.11, makemigrations will create a migration to recreate the index with the correct name

  • Fixed a crash when using a __icontains lookup on a ArrayField

  • Fixed a crash when using a two-tuple in EmailMessage’s attachments argument

  • Fixed QuerySet.filter() crash when it references the name of a OneToOneField primary key 

  • Fixed empty POST data table appearing instead of “No POST data” in HTML debug page 

  • Restored BoundFields without any choices evaluating to True 

  • Prevented SessionBase.cycle_key() from losing session data if _session_cache isn’t populated 

  • Fixed layout of ReadOnlyPasswordHashWidget (used in the admin’s user change page)

  • Allowed prefetch calls on managers with custom ModelIterable subclasses

  • Fixed change password link in the contrib.auth admin for eles_MX, and pt translations 

  • Restored the output of the class attribute in the <ul> of widgets that use the multiple_input.htmltemplate. This fixes ModelAdmin.radio_fields with admin.HORIZONTAL 

  • Fixed crash in BaseGeometryWidget.subwidgets() 

  • Fixed exception reraising in ORM query execution when cursor.execute() fails and the subsequent cursor.close() also fails

  • Fixed a regression where CheckboxSelectMultipleNullBooleanSelectRadioSelectSelectMultiple, and Select localized option values 

  • Corrected the stack level of unordered queryset pagination warnings

  • Fixed a regression causing incorrect queries for __in subquery lookups when models use ForeignKey.to_field

  • Fixed crash when overriding the template of django.views.static.directory_index()

  • Fixed a regression in formset min_num validation with unchanged forms that have initial data 

  • Prepared for cx_Oracle 6.0 support

  • Updated the contrib.postgres SplitArrayWidget to use template-based widget rendering 

  • Fixed crash in BaseGeometryWidget.get_context() when overriding existing attrs

  • Prevented AddIndex and RemoveIndex from mutating model state

  • Prevented migrations from dropping database indexes from Meta.indexes when changing Field.db_indexto False 

  • Fixed a regression in choice ordering in form fields with grouped and non-grouped options

  • Fixed crash in BaseInlineFormSet._construct_form() when using save_as_new

  • Fixed a regression where Model._state.db wasn’t set correctly on multi-table inheritance parent models after saving a child model

  • Corrected the return type of ArrayField(CITextField()) values retrieved from the database 

  • Fixed QuerySet.prefetch_related() crash when fetching relations in nested Prefetch objects 

  • Prevented hiding GDAL errors if it’s not installed when using contrib.gis . (It’s a required dependency as of Django 1.11.)

  • Fixed a regression causing __in lookups on a foreign key to fail when using the foreign key’s parent model as the lookup value

下载地址:

https://www.djangoproject.com/download/



历史版本 :
Django 2.0 正式发布,Python 的 Web 框架
DjangoX v0.4.1 发布, Django 强大灵活后台系统
Django 2.0 beta 1 发布,Python 的 Web 框架
Django 2.0 beta 发布,Python 的 Web 框架
Django 1.11.6 发布,Python 的 Web 框架
Django 2.0a1 发布,Python 的 Web 框架
Django 1.11.5 和 1.10.8 发布,修复安全问题
DjangoX v0.4.0 发布, Django 强大灵活后台系统
Django 1.11.4 发布,Python 的 Web 框架
Django 1.11.3 发布,Python 的 Web 框架
Django 1.11.1 发布,Python 的 Web 框架
Django 1.10.6 发布,Python 的 Web 框架
最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务