2006年07月19日 星期三 15:40
limodou的django教程(七)创建generic view,查看http://1270.0.1/address/ 总是报 Exception Type: TemplateDoesNotExist Exception Value: address/address_list.html 可是address/address_list.html这个页面是存在的啊
2006年07月19日 星期三 16:00
On 7/19/06, crocodile.liu <crocodile.liu at 163.com> wrote: > > limodou的django教程(七)创建generic view,查看http://1270.0.1/address/ > 总是报 > Exception Type: TemplateDoesNotExist > Exception Value: address/address_list.html > > > 可是address/address_list.html这个页面是存在的啊 > 看一下app是否加到 settings.py中去了? -- I like python! My Blog: http://www.donews.net/limodou My Django Site: http://www.djangocn.org NewEdit Maillist: http://groups.google.com/group/NewEdit
2006年07月19日 星期三 16:29
刚才重新试了一下,所有的调用template都不行了,连不用app的也不行了 limodou 写道: > On 7/19/06, crocodile.liu <crocodile.liu at 163.com> wrote: >> >> limodou的django教程(七)创建generic view,查看http://1270.0.1/address/ >> 总是报 >> Exception Type: TemplateDoesNotExist >> Exception Value: address/address_list.html >> >> >> 可是address/address_list.html这个页面是存在的啊 >> > 看一下app是否加到 settings.py中去了? > > ------------------------------------------------------------------------ > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese
2006年07月19日 星期三 17:11
刚才重新svn update了一下,就好了。看了django还不太稳定啊 crocodile.liu 写道: > 刚才重新试了一下,所有的调用template都不行了,连不用app的也不行了 > > > limodou 写道: > >> On 7/19/06, crocodile.liu <crocodile.liu at 163.com> wrote: >> >>> limodou的django教程(七)创建generic view,查看http://1270.0.1/address/ >>> 总是报 >>> Exception Type: TemplateDoesNotExist >>> Exception Value: address/address_list.html >>> >>> >>> 可是address/address_list.html这个页面是存在的啊 >>> >>> >> 看一下app是否加到 settings.py中去了? >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> python-chinese >> Post: send python-chinese at lists.python.cn >> Subscribe: send subscribe to python-chinese-request at lists.python.cn >> Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn >> Detail Info: http://python.cn/mailman/listinfo/python-chinese >> > > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > >
2006年07月19日 星期三 17:40
这个最好是在settings.py里面设置一个绝对路径作为模板的路径。 limodou在教程里面用的几乎都是相对路径,可能是django处理这个地方的时候造成的错误。不过理论上相对路径是没问题的。 当然,在apache上部署的时候还是要写绝对路径的。 在 06-7-19,crocodile.liu<crocodile.liu at 163.com> 写道: > > 刚才重新svn update了一下,就好了。看了django还不太稳定啊 > > crocodile.liu 写道: > > 刚才重新试了一下,所有的调用template都不行了,连不用app的也不行了 > > > > > > limodou 写道: > > > >> On 7/19/06, crocodile.liu <crocodile.liu at 163.com> wrote: > >> > >>> limodou的django教程(七)创建generic view,查看http://1270.0.1/address/ > >>> 总是报 > >>> Exception Type: TemplateDoesNotExist > >>> Exception Value: address/address_list.html > >>> > >>> > >>> 可是address/address_list.html这个页面是存在的啊 > >>> > >>> > >> 看一下app是否加到 settings.py中去了? > >> > >> ------------------------------------------------------------------------ > >> > >> _______________________________________________ > >> python-chinese > >> Post: send python-chinese at lists.python.cn > >> Subscribe: send subscribe to python-chinese-request at lists.python.cn > >> Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > >> Detail Info: http://python.cn/mailman/listinfo/python-chinese > >> > > > > > > _______________________________________________ > > python-chinese > > Post: send python-chinese at lists.python.cn > > Subscribe: send subscribe to python-chinese-request at lists.python.cn > > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > > > > > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese >
Zeuux © 2025
京ICP备05028076号