Python论坛  - 讨论区

标题:[python-chinese] django stepbystep 13 又冒出一个问题!!ViewDoesNotExist!!!!

2007年09月19日 星期三 01:03

boyeestudio boyee118在gmail.com
星期三 九月 19 01:03:25 HKT 2007

ÏÖÔÚÔÚ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 

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

2007年09月19日 星期三 01:59

风向标 vaneoooo在gmail.com
星期三 九月 19 01:59:07 HKT 2007

root·¾¶ÐèÒªÉèÖÃ

µ¼ÈëÄ£¿é×îºÃ¼ÓÉÏÏîÄ¿Ãû£¬ÀýÈçprojectname.address.views
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070919/c0ffde09/attachment.html 

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

2007年09月19日 星期三 07:51

limodou limodou在gmail.com
星期三 九月 19 07:51:05 HKT 2007

ʹÓÃ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 

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号