== LiClass1:Hollo world! == * 果然有挫折! 1. 安装 0.90 版本,没有木头所言 `manage.py` 1. 追回[[http://blog.donews.com/limodou/archive/2005/12/27/672689.aspx|一步一步学习(一)]] 一看才明白,要SVN Trunk版本的!呜乎哀哉!你怎么不说清楚哪! {{{[F:\zDevelop\_Zoomq\Django\tryfirst]py manage.py runserver Validating models... 0 errors found. Starting server on port 8000 with settings module 'tryfirst.settings'. Go to http://127.0.0.1:8000/ for Django. Quit the server with CONTROL-C (Unix) or CTRL-BREAK (Windows). }}} {{attachment:snap-tryDjango-1-0.png}} * 哈哈哈!!有用! * apps ??? 1. {{attachment:snap-tryDjango-1-leo.png}} 1. 使用 [[Leo]] 组织一下子,明确项目结构,开始! {{attachment:snap-tryDjango-1-1-hollo.png}} * 为什么?!urls.py 中{{{ # (r'^tryfirst/', include('tryfirst.apps.foo.urls.foo')), (r'^$', 'hollo.index'), }}} * 看着 example 再尝试{{{ (r'^$', include('tryfirst.apps.hollo.index')), }}} {{attachment:snap-tryDjango-1-2-hollo.png}} * KAO!!也不成?!难道是{{{ (r'^$', 'tryfirst.apps.hollo.index'), }}} {{attachment:snap-tryDjango-1-done.png}} DONE! [[limodou]]!! 你为什么不说明白哪!!好歹也测试一下子哪!!! === 小节 === 初体验,感觉 Django 的调试信息比KarriGell 还要漂亮哪!! 写应用页面变成了一个应用插件的注册过程,嗯嗯,有些向官僚式的八股文写作了,好!是俺组织标准化KarriGell web 应用的一种示范!