Python Web 架构 Django v1.10b1 发布

jopen 8年前
   <p style="text-align: center;"><img alt="" src="https://simg.open-open.com/show/9b6d7217c8e9f5953f207c33b0c77645.png" /></p>    <p>Django是一个开放源代码的Web应用框架,由Python写成。采用了MVC的软件设计模式,即模型M,视图V和控制器C。它最初是被开发来用于管理劳伦斯出版集团旗下的一些以新闻内容为主的网站的,即是CMS(内容管理系统)软件。并于2005年7月在BSD许可证下发布。这套框架是以比利时的吉普赛爵士吉他手Django Reinhardt来命名的。</p>    <p>Django 框架的核心组件有:</p>    <ul>     <li>用于创建模型的对象关系映射</li>     <li>为最终用户设计的完美管理界面</li>     <li>一流的 URL 设计</li>     <li>设计者友好的模板语言</li>     <li>缓存系统。</li>    </ul>    <h2>更新日志</h2>    <ul>     <li>For sites running on a subpath, the default <a href="/misc/goto?guid=4958991646075637820" title="django.contrib.admin.AdminSite.site_url"><code>URL for the "View site" link</code></a> at the top of each admin page will now point to<code>request.META['SCRIPT_NAME']</code> if set, instead of <code>/</code>.</li>     <li>The success message that appears after adding or editing an object now contains a link to the object’s change form.</li>     <li>All inline JavaScript is removed so you can enable the <code>Content-Security-Policy</code> HTTP header if you wish.</li>     <li>The new <a href="/misc/goto?guid=4958991646211519817" title="django.contrib.admin.InlineModelAdmin.classes"><code>InlineModelAdmin.classes</code></a> attribute allows specifying classes on inline fieldsets. Inlines with a <code>collapse</code> class will be initially collapsed and their header will have a small “show” link.</li>     <li>If a user doesn’t have the add permission, the <code>object-tools</code> block on a model’s changelist will now be rendered (without the add button, of course). This makes it easier to add custom tools in this case.</li>     <li>The <a href="/misc/goto?guid=4958991646344310858" title="django.contrib.admin.models.LogEntry"><code>LogEntry</code></a> model now stores change messages in a JSON structure so that the message can be dynamically translated using the current active language. A new <code>LogEntry.get_change_message()</code> method is now the preferred way of retrieving the change message.</li>     <li>Selected objects for fields in <code>ModelAdmin.raw_id_fields</code> now have a link to object’s change form.</li>     <li>Added “No date” and “Has date” choices for <code>DateFieldListFilter</code> if the field is nullable.</li>     <li>The jQuery library embedded in the admin is upgraded from version 2.1.4 to 2.2.3.</li>     <li>更多见:<a href="/misc/goto?guid=4958990500571725624">djangoproject</a></li>    </ul>    <h2>下载</h2>    <ul>     <li><a href="/misc/goto?guid=4958991646516558864">Django-1.10b1.tar.gz</a></li>     <li><a href="/misc/goto?guid=4958991646647738175" rel="nofollow"><strong>Source code</strong> (zip)</a></li>     <li><a href="/misc/goto?guid=4958991646772545599" rel="nofollow"><strong>Source code</strong> (tar.gz)</a></li>    </ul>