Python Web 框架 Django 1.4 beta 1 发布

fmms 12年前
     <p><img alt="Python Web 框架 Django" src="https://simg.open-open.com/show/b19c5e60269db0d38f5b048f86d061a8.gif" width="117" height="41" /></p>    <p>Django 项目是一个定制框架,它源自一个在线新闻 Web 站点,于 2005 年以开源的形式被释放出来。Django 框架的核心组件有:</p>    <ul>     <li>用于创建模型的对象关系映射</li>     <li>为最终用户设计的完美管理界面</li>     <li>一流的 URL 设计</li>     <li>设计者友好的模板语言</li>     <li>缓存系统</li>    </ul>    <p>你是否期待 Django 1.4 很久了,现在终于发布了第一个 beta 版本。该版本最大的改进就是支持浏览器内的测试框架,但另外需要注意的是不再支持 Python 2.4.</p>    <p>下面是 Django 1.4 Beta 1 的主要改进:</p>    <ul>     <li><a href="/misc/goto?guid=4958329739167559842" target="_blank"><strong>SELECT FOR UPDATE support:</strong></a>  Features a QuerySet.select_for_update() that generates a SQL query and prevents other transactions fro modifying of deleting matched rows.</li>     <li><a href="/misc/goto?guid=4958329740026313450" target="_blank"><strong>Model.objects.bulk_create in the ORM:</strong></a> allows you to create multiple objects in the ORM more efficiently.</li>     <li><a href="/misc/goto?guid=4958329740824084560"><strong>QuerySet.prefetch_related:</strong></a> Once query evaluation begins, a new QuerySet is returned that will prefetch related lookups in one batch.</li>     <li><a href="/misc/goto?guid=4958329741622654311" target="_blank"><strong>Improved Password Hashing:</strong></a> Django 1.4 uses the PBKDF2 algorithm in place of the SHA1 algorithm, which has been deemed less secure. ("Warning: Django 1.4 alpha contained a bug that corrupted PBKDF2 hashes.  More information is available <a href="/misc/goto?guid=4958329741622654311" target="_blank">here</a>.")</li>     <li><a href="/misc/goto?guid=4958329743144361348"><strong>HTML5 Doctype:</strong></a> While Django will maintain compatibility with older browsers, it has now switched the admin and other bundled templates to HMTL5, meaning any HTML5 features can be used in the admin pages without losing HTML5 validity.</li>    </ul>    <p>Django 1.4 beta 1 同时包含如下特性:</p>    <ul>     <li><a href="/misc/goto?guid=4958329743933334423" target="_blank">Extended IPv6 Support</a></li>     <li><a href="/misc/goto?guid=4958329744722509816" target="_blank">Improved WSGI Support</a></li>     <li><a href="/misc/goto?guid=4958329745514592622" target="_blank">Support of Time Zones</a></li>    </ul>    <p>完整的改进记录请看:<a href="/misc/goto?guid=4958329746307273738">release notes</a>.<br /> <br /> Django 1.4 beta 1 可从这里 <a href="/misc/goto?guid=4958329747104897911">下载</a>.</p>