Python Web 架構 Django v1.10b1 發布
Django是一個開放源代碼的Web應用框架,由Python寫成。采用了MVC的軟件設計模式,即模型M,視圖V和控制器C。它最初是被開發來用于管理勞倫斯出版集團旗下的一些以新聞內容為主的網站的,即是CMS(內容管理系統)軟件。并于2005年7月在BSD許可證下發布。這套框架是以比利時的吉普賽爵士吉他手Django Reinhardt來命名的。
Django 框架的核心組件有:
- 用于創建模型的對象關系映射
- 為最終用戶設計的完美管理界面
- 一流的 URL 設計
- 設計者友好的模板語言
- 緩存系統。
更新日志
- For sites running on a subpath, the default
URL for the "View site" link
at the top of each admin page will now point torequest.META['SCRIPT_NAME']
if set, instead of/
. - The success message that appears after adding or editing an object now contains a link to the object’s change form.
- All inline JavaScript is removed so you can enable the
Content-Security-Policy
HTTP header if you wish. - The new
InlineModelAdmin.classes
attribute allows specifying classes on inline fieldsets. Inlines with acollapse
class will be initially collapsed and their header will have a small “show” link. - If a user doesn’t have the add permission, the
object-tools
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. - The
LogEntry
model now stores change messages in a JSON structure so that the message can be dynamically translated using the current active language. A newLogEntry.get_change_message()
method is now the preferred way of retrieving the change message. - Selected objects for fields in
ModelAdmin.raw_id_fields
now have a link to object’s change form. - Added “No date” and “Has date” choices for
DateFieldListFilter
if the field is nullable. - The jQuery library embedded in the admin is upgraded from version 2.1.4 to 2.2.3.
- 更多見:djangoproject
下載
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!