官术网_书友最值得收藏!

Removing the magic

Due to its humble origins as an internal tool, Django had a lot of Lawrence Journal-World-specific oddities. To make Django truly general purpose, an effort dubbed Removing the Lawrence had already been underway.

However, the most significant refactoring effort that Django developers had to undertake was called Removing the Magic. This ambitious project involved cleaning up all the warts Django had accumulated over the years, including a lot of magic (an informal term for implicit features) and replacing them with a more natural and explicit Pythonic code. For example, the model classes used to be imported from a magic module called django.models.*, rather than being directly imported from the models.py module they were defined in.

At that time, Django had about a hundred thousand lines of code, and it was a significant rewrite of the API. On May 1, 2006, these changes, almost the size of a small book, were integrated into Django's development version trunk and released as Django release 0.95. This was a significant step toward the Django 1.0 milestone.

主站蜘蛛池模板: 万安县| 乌拉特前旗| 建始县| 建瓯市| 桂林市| 江安县| 屏东县| 西宁市| 白山市| 巴彦县| 安图县| 永济市| 德钦县| 岳阳县| 马尔康县| 禹城市| 突泉县| 牙克石市| 宁远县| 故城县| 临桂县| 甘德县| 广宁县| 绥中县| 崇阳县| 昭苏县| 农安县| 宣恩县| 思茅市| 土默特右旗| 台中县| 蛟河市| 承德市| 射阳县| 星子县| 丹巴县| 石阡县| 绵阳市| 邵东县| 从江县| 江油市|