2006年07月20日 星期四 09:51
的确,改成绝对路径一切就OK了,理论上相对路径是没问题的,可实际用起来有时 候可以,有时候就不行 马踏飞燕 写道: > 这个最好是在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 >> > ------------------------------------------------------------------------ > > _______________________________________________ > 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月20日 星期四 13:50
ÔÚÎÒ×öÏîÄ¿µÄʱºò£¬Ò²¾³£±»Â·¾¶ÎÊÌâÀ§ÈÅ ÆäʵÓеÄʱºòÖ»ÒªÉÔ²»×¢Ò⣬Äã¾Í»á·¸Â·¾¶´íÎ󣬲¢ÇÒÕâÖÖ´íÎóÍùÍùºÜÒþ±Î£¬Ö»ÔÚij ЩÌض¨Çé¿öÏ»áÒý·¢£¬¶øÇÒºÜÄѽøÐвâÊÔ Ö÷Òª½â¾ö°ì·¨¾ÍÊÇÑø³ÉÒ»Ö̶ֹ¨µÄ·¾¶Ê¹ÓÃÏ°¹ß£¬±ÈÈ縸·¾¶Ò»Âɸ´ÖƸøÒ»¸öÈ«¾Ö±ä Á¿£¬ËùÓз¾¶ÒýÓö¼²»ÒªÖ±½Óд¾ø¶Ô·¾¶×Ö·û´®£¬ÒªÓø÷ÖÖ±äÁ¿ºÍos½øÐÐ×éºÏµÃ ³ö£¬×éºÏ·¾¶×Ö·û´®ÓÃͳһµÄ·ç¸ñ£¬ÓÃ+¾ÍÒ»Ö±ÓÃ+£¬ÓÃjoin¾ÍÒ»Ö±ÓÃjoin£¬Ç§Íò²»Òª Ò»»á¶ùÓÃ+Ò»»á¶ùÓÃjoin ²»¹ý×ܵÄÀ´ËµÎÒ¶ÔpythonµÄpath¿â²»ÊǺÜÂúÒ⣬Èç¹ûÓÐÒ»ÖÖ¸ü¼Ó³éÏóµÄ£¬ÍêÈ«ÃæÏò¶Ô ÏóµÄpath¿â¾ÍºÃÁË£¬¾Í²»ÓóÉÌì¸ú×Ö·û´®ÕÛÌÚÁË¡£²»¹ÜʲôÓïÑÔ£¬ÕÛÌÚ×Ö·û´®¶¼ÊÇ×î ÈÝÒ׳ö´íµÄ Best Regards, Zachary Wu (Îâ°~ÀÚ) Software Engineer, Enterprise Content Management FVT, IBM China Software Development Lab Tel: +86 10 82782244-3235. Fax: 82782244-2886 Tie Line: 915-2244-3235 Internet: xiaoleiw at cn.ibm.com Notes ID: Xiao Lei Wu/China/Contr/IBM at IBMCN Address: 8/F, Block A, Power Creative Building, No.1, East Road, Shang Di, Beijing 100085, P.R. China python-chinese-bounces at lists.python.cn дÓÚ 2006-07-20 09:51:05: > > µÄÈ·£¬¸Ä³É¾ø¶Ô·¾¶Ò»ÇоÍOKÁË£¬ÀíÂÛÉÏÏà¶Ô·¾¶ÊÇûÎÊÌâµÄ£¬¿Éʵ¼ÊÓÃÆðÀ´ÓÐʱ > ºò¿ÉÒÔ£¬ÓÐʱºò¾Í²»ÐÐ > > > Âí̤·ÉÑà дµÀ: > > Õâ¸ö×îºÃÊÇÔÚ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/ > >> >>> ×ÜÊDZ¨ > >> >>> 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 > >> > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060720/200123fd/attachment.html
Zeuux © 2025
京ICP备05028076号