2007年09月19日 星期三 01:03
ÏÖÔÚÔÚApache2ÉÏ¿ÉÒÔ´ò¿ª/addressÁË¡£µ«µãµ¼³ö£¨²»¹âÊÇÕâ¸ö£¬Ëæ±ãµã°´Å¥£©¶¼»á³öÏÖÒì³££¡ÎÒÒÑ°´Àî´ó¸çËù˵£¬¸ÄÁ˼¸¸öÏà¶Ô·½£¬ÏÖÔÚ³öÏÖViewÕÒ²»µ½¡£µ«ÆäËüµØ·½ÎÒ¶¼Ã»¶¯¹ý¡£ ViewDoesNotExist at /address/output/ Could not import address.views. Error was: No module named address.views Request Method: GET Request URL: http://192.168.1.101:8900/address/output/ Exception Type: ViewDoesNotExist Exception Value: Could not import address.views. Error was: No module named address.views Exception Location: /usr/lib/python2.5/site-packages/django/core/urlresolvers.py in _get_callback, line 181 Python Executable: /usr/bin/python Python Version: 2.5.1 Traceback (most recent call last): File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in get_response 68. callback, callback_args, callback_kwargs = resolver.resolve( request.path) File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in resolve 233. sub_match = pattern.resolve(new_path) File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in resolve 233. sub_match = pattern.resolve(new_path) File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in resolve 172. return self.callback, args, kwargs File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in _get_callback 181. raise ViewDoesNotExist, "Could not import %s. Error was: %s" % (mod_name, str(e)) ViewDoesNotExist at /address/output/ Could not import address.views. Error was: No module named address.views -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070919/09ffb3b2/attachment.html
2007年09月19日 星期三 01:59
root·¾¶ÐèÒªÉèÖà µ¼ÈëÄ£¿é×îºÃ¼ÓÉÏÏîÄ¿Ãû£¬ÀýÈçprojectname.address.views -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070919/c0ffde09/attachment.html
2007年09月19日 星期三 07:51
ʹÓÃapacheÒª¸´ÔÓЩ£¬Òª°ÑprojectµÄ·¾¶ºÍËüµÄ¸¸Â·¾¶¶¼¼ÓÈësys.pathÖбȽϷ½±ã¡£ ¶øaddress.viewµÄÓ÷¨ËµÃ÷ËüÊÇ´ÓprojectĿ¼¿ªÊ¼Õҵģ¬ËùÒÔÒª°Ñproject·¾¶¼ÓÈësys.path. Èç¹ûʹÓÿª·¢·þÎñÆ÷£¬ manage.py»á×Ô¶¯½«projectµÄ·¾¶ºÍËüµÄ¸¸Â·¾¶¶¼¼ÓÈësys.pathÖУ¬¶øapacheÒª×ÔÒÑÀ´×ö¡£ On 9/19/07, boyeestudio <boyee118在gmail.com> wrote: > > > ÏÖÔÚÔÚApache2ÉÏ¿ÉÒÔ´ò¿ª/addressÁË¡£µ«µãµ¼³ö£¨²»¹âÊÇÕâ¸ö£¬Ëæ±ãµã°´Å¥£©¶¼»á³öÏÖÒì³££¡ÎÒÒÑ°´Àî´ó¸çËù˵£¬¸ÄÁ˼¸¸öÏà¶Ô·½£¬ÏÖÔÚ³öÏÖViewÕÒ²»µ½¡£µ«ÆäËüµØ·½ÎÒ¶¼Ã»¶¯¹ý¡£ > > ViewDoesNotExist at /address/output/ Could not import address.views. Error > was: No module named address.views Request Method: GET Request URL: > http://192.168.1.101:8900/address/output/ Exception Type: > ViewDoesNotExist Exception Value: Could not import address.views. Error > was: No module named address.views Exception Location: /usr/lib/python2.5/site-packages/django/core/urlresolvers.py > in _get_callback, line 181 Python Executable: /usr/bin/python Python > Version: 2.5.1 > > Traceback (most recent call last): > File "/usr/lib/python2.5/site-packages/django/core/handlers/base.py" in > get_response > 68. callback, callback_args, callback_kwargs = resolver.resolve( > request.path) > File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in > resolve > 233. sub_match = pattern.resolve(new_path) > File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in > resolve > 233. sub_match = pattern.resolve(new_path) > File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in > resolve > 172. return self.callback, args, kwargs > File "/usr/lib/python2.5/site-packages/django/core/urlresolvers.py" in > _get_callback > 181. raise ViewDoesNotExist, "Could not import %s. Error was: %s" % > (mod_name, str(e)) > > ViewDoesNotExist at /address/output/ > Could not import address.views. Error was: No module named address.views > > > _______________________________________________ > python-chinese > Post: send python-chinese在lists.python.cn > Subscribe: send subscribe to python-chinese-request在lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > -- I like python! UliPad <>: http://code.google.com/p/ulipad/ My Blog: http://www.donews.net/limodou -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070919/209b9ac1/attachment.html
Zeuux © 2025
京ICP备05028076号