2005年07月21日 星期四 12:49
原文链接: http://www.djangoproject.com/weblog/2005/jul/20/autoreload/ Seen our project timeline lately? It's irrefutable proof we've been constantly tweaking and improving Django. Some changes, as of late: The built-in development server now auto-reloads code when you refresh pages. No more having to restart the server when you make changes to your Python code! Special thanks to Jason Huggins for the patch. 在开发服务器下可以自动重装模块,这样做了修改只要刷新页面就行了。非常方便。 Speaking of the development server, it'll automatically serve admin media (images, CSS, JavaScript) for you. No more having to set up Apache just for those media files during development. 在开发服务器下自动处理admin媒体文件(图片,CSS,Javascript) meta.Admin.fields is now optional. By default, it'll use all editable fields in your model. Of course, you can still override it if you want fine-grained control over how your dynamically-generated admin forms look. meta.Admin.fields现在是可选项。缺省情况下它自动会将model(模型)的所有字段处理为可编辑。 We've added explicit mod_python documentation. 增加了mod_python文档。 We've added django-admin.py createsuperuser as a helpful utility. 增加了django-admin.py createsuperuser命令,可以方便地创建超级用户,不过再python交互下添加用户了。 We've made all sorts of tweaks and improvements to error messages, to make things as friendly and helpful as possible. (Speaking of friendly and helpful, have you been to the #django IRC channel yet?) All of these improvements came within the last 48 hours. Most of them came today. These changes are backward-compatible -- but please keep in mind that there's no guarantee of backwards compatibility until our first official release. Now's the time to suggest non-backwards-compatible changes, before we go into backwards-compatibility mode. Make suggestions on the django-developers mailing list. Stay tuned, and get involved: Much more improvements and tweaks are on the way. -- I like python! My Donews Blog: http://www.donews.net/limodou New Google Maillist: http://groups-beta.google.com/group/python-cn
Zeuux © 2025
京ICP备05028076号