Python论坛  - 讨论区

标题:[python-chinese] django TemplateDoesNotExist

2006年07月19日 星期三 15:40

crocodile.liu crocodile.liu at 163.com
Wed Jul 19 15:40:52 HKT 2006

limodou的django教程(七)创建generic view,查看http://1270.0.1/address/
总是报
Exception Type: 	TemplateDoesNotExist
Exception Value: 	address/address_list.html


可是address/address_list.html这个页面是存在的啊


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月19日 星期三 16:00

limodou limodou at gmail.com
Wed Jul 19 16:00:41 HKT 2006

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

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月19日 星期三 16:29

crocodile.liu crocodile.liu at 163.com
Wed Jul 19 16:29:17 HKT 2006

刚才重新试了一下,所有的调用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



[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月19日 星期三 17:11

crocodile.liu crocodile.liu at 163.com
Wed Jul 19 17:11:56 HKT 2006

刚才重新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
>
>
>   



[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年07月19日 星期三 17:40

马踏飞燕 honeyday.mj at gmail.com
Wed Jul 19 17:40:39 HKT 2006

这个最好是在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
>

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号