2007年03月30日 星期五 17:49
初学python,看django的代码 在transaction.py里面看到有 def commit_manually(func): def _commit_manually(*args, **kw): try: enter_transaction_management() managed(True) return func(*args, **kw) finally: leave_transaction_management() return _commit_manually 这种形式的写法。在用的时候写的是 @transaction.commit_manually 不知这是什么用法。有@在网上似乎也不好搜:( -------------- 下一部分 -------------- 一个HTML附件被移除... URL: http://python.cn/pipermail/python-chinese/attachments/20070330/eba64def/attachment.htm
2007年03月30日 星期五 18:09
ÎÒ¿´ÁËinstallÎļþ,²¢°ÑDjangoĿ¼copyµ½ÁËpythonµÄLib\site-packages\ÏÂÃæ,²¢Ê¹ÓÃpython½øÐа²×°Ëü,µ«ÊÇ,¾ÍÊÇ°²×°²»ÁË,ʲôÔÒò°¡? ´íÎóÐÅÏ¢ÈçÏÂ: Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. **************************************************************** Personal firewall software may warn about the connection IDLE makes to its subprocess using this computer's internal loopback interface. This connection is not visible on any external interface and no data is sent to or received from the Internet. **************************************************************** IDLE 1.2 ==== No Subprocess ==== >>> --------------------------------------------------------------------------- This script requires setuptools version 0.6c1 to run (even to display help). I will attempt to download it for you (from http://cheeseshop.python.org/packages/2.5/s/setuptools/), but you may need to enable firewall access for this script first. I will start the download in 15 seconds. (Note: if this machine does not have network access, please obtain the file http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c1-py2.5.egg and place it in this directory before rerunning this script.) --------------------------------------------------------------------------- Downloading http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c1-py2.5.egg Traceback (most recent call last): File "C:\Python25\Lib\site-packages\Django\setup.py", line 2, inez_setup.use_setuptools() File "C:\Documents and Settings\jsz\×ÀÃæ\Django-0.95\ez_setup.py", line 72, in use_setuptools egg = download_setuptools(version, download_base, to_dir, download_delay) File "C:\Documents and Settings\jsz\×ÀÃæ\Django-0.95\ez_setup.py", line 126, in download_setuptools src = urllib2.urlopen(url) File "C:\Python25\lib\urllib2.py", line 121, in urlopen return _opener.open(url, data) File "C:\Python25\lib\urllib2.py", line 380, in open response = meth(req, response) File "C:\Python25\lib\urllib2.py", line 491, in http_response 'http', request, response, code, msg, hdrs) File "C:\Python25\lib\urllib2.py", line 418, in error return self._call_chain(*args) File "C:\Python25\lib\urllib2.py", line 353, in _call_chain result = func(*args) File "C:\Python25\lib\urllib2.py", line 499, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 404: Not Found jsz7758520 2007-03-30 -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070330/1d9271b2/attachment.html
2007年03月30日 星期五 19:27
django 好像不依赖 setuptools 了吧,你是用的 django0.96 吗? 非要 setuptools 的话,你去下一个就好了,去 cheeseshop.python.org 搜一下 On 3/30/07, jsz7758520 <jsz7758520 at 163.com> wrote: > > > 我看了install文件,并把Django目录copy到了python的Lib\site-packages\下面,并使用python进行安装它,但是,就是安装不了,什么原因啊? > 错误信息如下: > > Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] > on win32 > Type "copyright", "credits" or "license()" for more information. > > **************************************************************** > Personal firewall software may warn about the connection IDLE > makes to its subprocess using this computer's internal loopback > interface. This connection is not visible on any external > interface and no data is sent to or received from the Internet. > **************************************************************** > > IDLE 1.2 ==== No Subprocess ==== > >>> > > > --------------------------------------------------------------------------- > This script requires setuptools version 0.6c1 to run (even to display > help). I will attempt to download it for you (from > http://cheeseshop.python.org/packages/2.5/s/setuptools/), but > you may need to enable firewall access for this script first. > I will start the download in 15 seconds. > > (Note: if this machine does not have network access, please obtain the > file > > > http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c1-py2.5.egg > > and place it in this directory before rerunning this script.) > > --------------------------------------------------------------------------- > Downloading > http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c1-py2.5.egg > Traceback (most recent call last): > File "C:\Python25\Lib\site-packages\Django\setup.py", line 2, in >> ez_setup.use_setuptools() > File "C:\Documents and Settings\jsz\桌面\Django-0.95\ez_setup.py", line > 72, in use_setuptools > egg = download_setuptools(version, download_base, to_dir, > download_delay) > File "C:\Documents and Settings\jsz\桌面\Django-0.95\ez_setup.py", line > 126, in download_setuptools > src = urllib2.urlopen(url) > File "C:\Python25\lib\urllib2.py", line 121, in urlopen > return _opener.open(url, data) > File "C:\Python25\lib\urllib2.py", line 380, in open > response = meth(req, response) > File "C:\Python25\lib\urllib2.py", line 491, in http_response > 'http', request, response, code, msg, hdrs) > File "C:\Python25\lib\urllib2.py", line 418, in error > return self._call_chain(*args) > File "C:\Python25\lib\urllib2.py", line 353, in _call_chain > result = func(*args) > File "C:\Python25\lib\urllib2.py", line 499, in http_error_default > raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) > HTTPError: HTTP Error 404: Not Found > > ------------------------------ > jsz7758520 > 2007-03-30 > > > > > _______________________________________________ > 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 > -- http://codeplayer.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://python.cn/pipermail/python-chinese/attachments/20070330/d0c5584e/attachment-0001.html
2007年03月30日 星期五 19:30
不用拷贝到 site-packages 下,直接在命令行执行 python setup.py install 即可。 在 07-3-30,jsz7758520<jsz7758520在163.com> 写道: > > 我看了install文件,并把Django目录copy到了python的Lib\site-packages\下面,并使用python进行安装它,但是,就是安装不了,什么原因啊? > 错误信息如下: > > Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on > win32 > Type "copyright", "credits" or "license()" for more information. > > > **************************************************************** > Personal firewall software may warn about the connection IDLE > makes to its subprocess using this computer's internal loopback > interface. This connection is not visible on any external > interface and no data is sent to or received from the Internet. > > **************************************************************** > > IDLE 1.2 ==== No Subprocess ==== > >>> > > --------------------------------------------------------------------------- > This script requires setuptools version 0.6c1 to run (even to display > help). I will attempt to download it for you (from > http://cheeseshop.python.org/packages/2.5/s/setuptools/), > but > you may need to enable firewall access for this script first. > I will start the download in 15 seconds. > > (Note: if this machine does not have network access, please obtain the file > > > http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c1-py2.5.egg > > and place it in this directory before rerunning this script.) > --------------------------------------------------------------------------- > Downloading > http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c1-py2.5.egg > Traceback (most recent call last): > File "C:\Python25\Lib\site-packages\Django\setup.py", > line 2, in> ez_setup.use_setuptools() > File "C:\Documents and Settings\jsz\桌面\Django-0.95\ez_setup.py", line 72, > in use_setuptools > egg = download_setuptools(version, download_base, to_dir, > download_delay) > File "C:\Documents and Settings\jsz\桌面\Django-0.95\ez_setup.py", line 126, > in download_setuptools > src = urllib2.urlopen(url) > File "C:\Python25\lib\urllib2.py", line 121, in urlopen > return _opener.open(url, data) > File "C:\Python25\lib\urllib2.py", line 380, in open > response = meth(req, response) > File "C:\Python25\lib\urllib2.py", line 491, in http_response > 'http', request, response, code, msg, hdrs) > File "C:\Python25\lib\urllib2.py", line 418, in error > return self._call_chain(*args) > File "C:\Python25\lib\urllib2.py", line 353, in _call_chain > result = func(*args) > File "C:\Python25\lib\urllib2.py", line 499, in http_error_default > raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) > HTTPError: HTTP Error 404: Not Found > > ________________________________ > > jsz7758520 > 2007-03-30 > > > _______________________________________________ > 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 >
2007年03月30日 星期五 20:43
ͬÎÊ£¬ÁíÍâÔÙÇë½ÌÒ»ÏÂÕâÁ½¸ö*args, **kwµÄ¾ßÌåÒâ˼£¬ÌرðÊÇ*ºÍ** ÔÚ07-3-30£¬Ren Zhen <fblist在gmail.com> дµÀ£º > > ³õѧpython£¬¿´djangoµÄ´úÂë > ÔÚtransaction.pyÀïÃæ¿´µ½ÓÐ > def commit_manually(func): > def _commit_manually(*args, **kw): > try: > enter_transaction_management() > managed(True) > return func(*args, **kw) > finally: > leave_transaction_management() > > return _commit_manually > > ÕâÖÖÐÎʽµÄд·¨¡£ÔÚÓõÄʱºòдµÄÊÇ > > @transaction.commit_manually > > ²»ÖªÕâÊÇʲôÓ÷¨¡£ÓÐ@ÔÚÍøÉÏËƺõÒ²²»ºÃËÑ:( > > > > _______________________________________________ > 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 > -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070330/9be048ad/attachment.htm
2007年03月30日 星期五 20:58
*±íʾ²ÎÊýÊÇlist(tuple) **±íʾ²ÎÊýÊÇdict On 3/30/07, Deng Patrick <kedeng19801002在gmail.com> wrote: > > ͬÎÊ£¬ÁíÍâÔÙÇë½ÌÒ»ÏÂÕâÁ½¸ö*args, **kwµÄ¾ßÌåÒâ˼£¬ÌرðÊÇ*ºÍ** > > ÔÚ07-3-30£¬Ren Zhen <fblist在gmail.com> дµÀ£º > > > > ³õѧpython£¬¿´djangoµÄ´úÂë > > ÔÚtransaction.pyÀïÃæ¿´µ½ÓÐ > > def commit_manually(func): > > def _commit_manually(*args, **kw): > > try: > > enter_transaction_management() > > managed(True) > > return func(*args, **kw) > > finally: > > leave_transaction_management() > > > > return _commit_manually > > > > ÕâÖÖÐÎʽµÄд·¨¡£ÔÚÓõÄʱºòдµÄÊÇ > > > > @transaction.commit_manually > > > > ²»ÖªÕâÊÇʲôÓ÷¨¡£ÓÐ@ÔÚÍøÉÏËƺõÒ²²»ºÃËÑ:( > > > > > > > > _______________________________________________ > > 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 > > > > > _______________________________________________ > 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 > -- ×¢ÒâÉíÌ壬ÉíÌåÊǸïÃüµÄ±¾Ç®£¡£¡ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070330/b4c12a7e/attachment.html
2007年03月30日 星期五 21:10
лл£¬ÔÙÈ·ÈÏÒ»ÏÂ*ÊÇlist or tuple»¹ÊÇtuple list? ÔÚ07-3-30£¬jessinio smith <jessinio在gmail.com> дµÀ£º > > *±íʾ²ÎÊýÊÇlist(tuple) > **±íʾ²ÎÊýÊÇdict > > On 3/30/07, Deng Patrick <kedeng19801002在gmail.com> wrote: > > > > ͬÎÊ£¬ÁíÍâÔÙÇë½ÌÒ»ÏÂÕâÁ½¸ö*args, **kwµÄ¾ßÌåÒâ˼£¬ÌرðÊÇ*ºÍ** > > > > ÔÚ07-3-30£¬Ren Zhen <fblist在gmail.com> дµÀ£º > > > > > > ³õѧpython£¬¿´djangoµÄ´úÂë > > > ÔÚtransaction.pyÀïÃæ¿´µ½ÓÐ > > > def commit_manually(func): > > > def _commit_manually(*args, **kw): > > > try: > > > enter_transaction_management() > > > managed(True) > > > return func(*args, **kw) > > > finally: > > > leave_transaction_management() > > > > > > return _commit_manually > > > > > > ÕâÖÖÐÎʽµÄд·¨¡£ÔÚÓõÄʱºòдµÄÊÇ > > > > > > @transaction.commit_manually > > > > > > ²»ÖªÕâÊÇʲôÓ÷¨¡£ÓÐ@ÔÚÍøÉÏËƺõÒ²²»ºÃËÑ:( > > > > > > > > > > > > _______________________________________________ > > > 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 > > > > > > > > > _______________________________________________ > > 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 > > > > > > -- > ×¢ÒâÉíÌ壬ÉíÌåÊǸïÃüµÄ±¾Ç®£¡£¡ > _______________________________________________ > 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 > -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070330/59f2e6e0/attachment.html
2007年03月30日 星期五 21:53
ллÄãÃÇ,ÎÒÏÈÊÔÊÔ! jsz7758520 2007-03-30 ·¢¼þÈË£º »ÆÒã ·¢ËÍʱ¼ä£º 2007-03-30 19:28:12 ÊÕ¼þÈË£º python-chinese在lists.python.cn ³ËÍ£º Ö÷Ì⣺ Re: [python-chinese]DjangoÔõô°²×°? django ºÃÏñ²»ÒÀÀµ setuptools ÁË°É£¬ÄãÊÇÓÃµÄ django0.96 Â𣿠·ÇÒª setuptools µÄ»°£¬ÄãÈ¥ÏÂÒ»¸ö¾ÍºÃÁË£¬È¥ cheeseshop.python.org ËÑһϠOn 3/30/07, jsz7758520 <jsz7758520在163.com> wrote: ÎÒ¿´ÁËinstallÎļþ,²¢°ÑDjangoĿ¼copyµ½ÁËpythonµÄLib\site-packages\ÏÂÃæ,²¢Ê¹ÓÃpython½øÐа²×°Ëü,µ«ÊÇ,¾ÍÊÇ°²×°²»ÁË,ʲôÔÒò°¡? ´íÎóÐÅÏ¢ÈçÏÂ: Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. **************************************************************** Personal firewall software may warn about the connection IDLE makes to its subprocess using this computer's internal loopback interface. This connection is not visible on any external interface and no data is sent to or received from the Internet. **************************************************************** IDLE 1.2 ==== No Subprocess ==== >>> --------------------------------------------------------------------------- This script requires setuptools version 0.6c1 to run (even to display help). I will attempt to download it for you (from http://cheeseshop.python.org/packages/2.5/s/setuptools/), but you may need to enable firewall access for this script first. I will start the download in 15 seconds. (Note: if this machine does not have network access, please obtain the file http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c1-py2.5.egg and place it in this directory before rerunning this script.) --------------------------------------------------------------------------- Downloading http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c1-py2.5.egg Traceback (most recent call last): File "C:\Python25\Lib\site-packages\Django\setup.py", line 2, inez_setup.use_setuptools() File "C:\Documents and Settings\jsz\×ÀÃæ\Django-0.95\ez_setup.py", line 72, in use_setuptools egg = download_setuptools(version, download_base, to_dir, download_delay) File "C:\Documents and Settings\jsz\×ÀÃæ\Django-0.95\ez_setup.py", line 126, in download_setuptools src = urllib2.urlopen(url) File "C:\Python25\lib\urllib2.py", line 121, in urlopen return _opener.open(url, data) File "C:\Python25\lib\urllib2.py", line 380, in open response = meth(req, response) File "C:\Python25\lib\urllib2.py", line 491, in http_response 'http', request, response, code, msg, hdrs) File "C:\Python25\lib\urllib2.py", line 418, in error return self._call_chain(*args) File "C:\Python25\lib\urllib2.py", line 353, in _call_chain result = func(*args) File "C:\Python25\lib\urllib2.py", line 499, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 404: Not Found jsz7758520 2007-03-30 _______________________________________________ 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 -- http://codeplayer.blogspot.com/ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070330/16ee2115/attachment.htm
2007年03月30日 星期五 21:55
Ó¦¸Ãʱtuple¡£ On 3/30/07, Deng Patrick <kedeng19801002在gmail.com> wrote: > > лл£¬ÔÙÈ·ÈÏÒ»ÏÂ*ÊÇlist or tuple»¹ÊÇtuple list? > > ÔÚ07-3-30£¬jessinio smith <jessinio在gmail.com> дµÀ£º > > > > *±íʾ²ÎÊýÊÇlist(tuple) > > **±íʾ²ÎÊýÊÇdict > > > > On 3/30/07, Deng Patrick <kedeng19801002在gmail.com > wrote: > > > > > > ͬÎÊ£¬ÁíÍâÔÙÇë½ÌÒ»ÏÂÕâÁ½¸ö*args, **kwµÄ¾ßÌåÒâ˼£¬ÌرðÊÇ*ºÍ** > > > > > > ÔÚ07-3-30£¬Ren Zhen <fblist在gmail.com> дµÀ£º > > > > > > > > ³õѧpython£¬¿´djangoµÄ´úÂë > > > > ÔÚtransaction.pyÀïÃæ¿´µ½ÓÐ > > > > def commit_manually(func): > > > > def _commit_manually(*args, **kw): > > > > try: > > > > enter_transaction_management() > > > > managed(True) > > > > return func(*args, **kw) > > > > finally: > > > > leave_transaction_management() > > > > > > > > return _commit_manually > > > > > > > > ÕâÖÖÐÎʽµÄд·¨¡£ÔÚÓõÄʱºòдµÄÊÇ > > > > > > > > @transaction.commit_manually > > > > > > > > ²»ÖªÕâÊÇʲôÓ÷¨¡£ÓÐ@ÔÚÍøÉÏËƺõÒ²²»ºÃËÑ:( > > > > > > > > > > > > > > > > _______________________________________________ > > > > 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 > > > > > > > > > > > > > _______________________________________________ > > > 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 > > > > > > > > > > > -- > > ×¢ÒâÉíÌ壬ÉíÌåÊǸïÃüµÄ±¾Ç®£¡£¡ > > _______________________________________________ > > 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 > > > > > _______________________________________________ > 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 > -- ×¢ÒâÉíÌ壬ÉíÌåÊǸïÃüµÄ±¾Ç®£¡£¡ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070330/1a8035cf/attachment.html
2007年03月31日 星期六 11:24
»¹ÊÇ°²×°²»ÁË. ºóÀ´ÎÒÏÂÀ´ÁË0.96°æ±¾µÄdjango,Ö´ÐкóµÄ´íÎóÐÅÏ¢ÈçÏÂ: Traceback (most recent call last): File "C:\Documents and Settings\jsz\×ÀÃæ\Django\setup.py", line 47, inscripts = ['django/bin/django-admin.py'], File "C:\Python25\lib\distutils\core.py", line 139, in setup raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: setup.py --help [cmd1 cmd2 ...] or: setup.py --help-commands or: setup.py cmd --help error: no commands supplied jsz7758520 2007-03-31 ·¢¼þÈË£º »ÆÒã ·¢ËÍʱ¼ä£º 2007-03-30 19:28:12 ÊÕ¼þÈË£º python-chinese在lists.python.cn ³ËÍ£º Ö÷Ì⣺ Re: [python-chinese]DjangoÔõô°²×°? django ºÃÏñ²»ÒÀÀµ setuptools ÁË°É£¬ÄãÊÇÓÃµÄ django0.96 Â𣿠·ÇÒª setuptools µÄ»°£¬ÄãÈ¥ÏÂÒ»¸ö¾ÍºÃÁË£¬È¥ cheeseshop.python.org ËÑһϠOn 3/30/07, jsz7758520 <jsz7758520在163.com> wrote: ÎÒ¿´ÁËinstallÎļþ,²¢°ÑDjangoĿ¼copyµ½ÁËpythonµÄLib\site-packages\ÏÂÃæ,²¢Ê¹ÓÃpython½øÐа²×°Ëü,µ«ÊÇ,¾ÍÊÇ°²×°²»ÁË,ʲôÔÒò°¡? ´íÎóÐÅÏ¢ÈçÏÂ: Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. **************************************************************** Personal firewall software may warn about the connection IDLE makes to its subprocess using this computer's internal loopback interface. This connection is not visible on any external interface and no data is sent to or received from the Internet. **************************************************************** IDLE 1.2 ==== No Subprocess ==== >>> --------------------------------------------------------------------------- This script requires setuptools version 0.6c1 to run (even to display help). I will attempt to download it for you (from http://cheeseshop.python.org/packages/2.5/s/setuptools/), but you may need to enable firewall access for this script first. I will start the download in 15 seconds. (Note: if this machine does not have network access, please obtain the file http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c1-py2.5.egg and place it in this directory before rerunning this script.) --------------------------------------------------------------------------- Downloading http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c1-py2.5.egg Traceback (most recent call last): File "C:\Python25\Lib\site-packages\Django\setup.py", line 2, in ez_setup.use_setuptools() File "C:\Documents and Settings\jsz\×ÀÃæ\Django-0.95\ez_setup.py", line 72, in use_setuptools egg = download_setuptools(version, download_base, to_dir, download_delay) File "C:\Documents and Settings\jsz\×ÀÃæ\Django-0.95\ez_setup.py", line 126, in download_setuptools src = urllib2.urlopen(url) File "C:\Python25\lib\urllib2.py", line 121, in urlopen return _opener.open(url, data) File "C:\Python25\lib\urllib2.py", line 380, in open response = meth(req, response) File "C:\Python25\lib\urllib2.py", line 491, in http_response 'http', request, response, code, msg, hdrs) File "C:\Python25\lib\urllib2.py", line 418, in error return self._call_chain(*args) File "C:\Python25\lib\urllib2.py", line 353, in _call_chain result = func(*args) File "C:\Python25\lib\urllib2.py", line 499, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 404: Not Found jsz7758520 2007-03-30 _______________________________________________ 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 -- http://codeplayer.blogspot.com/ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070331/79ad84f0/attachment.htm
2007年03月31日 星期六 18:57
我是用 Python 2.4 运行的,当时记得试过 Python 2.5 有点问题。我不了解是否支持 2.5, 可能安装工具对 2.5 的支持有点问题? 在 07-3-31,jsz7758520<jsz7758520在163.com> 写道: > > 还是安装不了. > 后来我下来了0.96版本的django,执行后的错误信息如下: > > Traceback (most recent call last): > File "C:\Documents and Settings\jsz\桌面\Django\setup.py", > line 47, in> scripts = ['django/bin/django-admin.py'], > File "C:\Python25\lib\distutils\core.py", line 139, in > setup > raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg > SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] > ...] > or: setup.py --help [cmd1 cmd2 ...] > or: setup.py --help-commands > or: setup.py cmd --help > > error: no commands supplied > > > > ________________________________ > > jsz7758520 > 2007-03-31 > ________________________________ > > 发件人: 黄毅 > 发送时间: 2007-03-30 19:28:12 > 收件人: python-chinese在lists.python.cn > 抄送: > 主题: Re: [python-chinese]Django怎么安装? > > > django 好像不依赖 setuptools 了吧,你是用的 django0.96 吗? > 非要 setuptools 的话,你去下一个就好了,去 cheeseshop.python.org 搜一下 > > > On 3/30/07, jsz7758520 <jsz7758520在163.com> wrote: > > > > > > > 我看了install文件,并把Django目录copy到了python的Lib\site-packages\下面,并使用python进行安装它,但是,就是安装不了,什么原因啊? > > 错误信息如下: > > > > Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] > on win32 > > Type "copyright", "credits" or "license()" for more information. > > > > > **************************************************************** > > Personal firewall software may warn about the connection IDLE > > makes to its subprocess using this computer's internal loopback > > interface. This connection is not visible on any external > > interface and no data is sent to or received from the Internet. > > > **************************************************************** > > > > IDLE 1.2 ==== No Subprocess ==== > > >>> > > > > > --------------------------------------------------------------------------- > > This script requires setuptools version 0.6c1 to run (even to display > > help). I will attempt to download it for you (from > > http://cheeseshop.python.org/packages/2.5/s/setuptools/), > but > > you may need to enable firewall access for this script first. > > I will start the download in 15 seconds. > > > > (Note: if this machine does not have network access, please obtain the > file > > > > > http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c1-py2.5.egg > > > > and place it in this directory before rerunning this script.) > > > --------------------------------------------------------------------------- > > Downloading > http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c1-py2.5.egg > > Traceback (most recent call last): > > File "C:\Python25\Lib\site-packages\Django\setup.py", > line 2, in > > ez_setup.use_setuptools() > > File "C:\Documents and Settings\jsz\桌面\Django-0.95\ez_setup.py", line > 72, in use_setuptools > > egg = download_setuptools(version, download_base, to_dir, > download_delay) > > File "C:\Documents and Settings\jsz\桌面\Django-0.95\ez_setup.py", line > 126, in download_setuptools > > src = urllib2.urlopen(url) > > File "C:\Python25\lib\urllib2.py", line 121, in urlopen > > return _opener.open(url, data) > > File "C:\Python25\lib\urllib2.py", line 380, in open > > response = meth(req, response) > > File "C:\Python25\lib\urllib2.py", line 491, in http_response > > 'http', request, response, code, msg, hdrs) > > File "C:\Python25\lib\urllib2.py", line 418, in error > > return self._call_chain(*args) > > File "C:\Python25\lib\urllib2.py", line 353, in _call_chain > > result = func(*args) > > File "C:\Python25\lib\urllib2.py", line 499, in http_error_default > > raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) > > HTTPError: HTTP Error 404: Not Found > > > > > > > > ________________________________ > > > jsz7758520 > > 2007-03-30 > > > > > > _______________________________________________ > > 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 > > > > > > -- > http://codeplayer.blogspot.com/ > _______________________________________________ > 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 >
2007年03月31日 星期六 20:53
¿ÉÎĵµÉÏ˵ÊÇÖ§³Ö2.5µÄÁËѽ£¬²»½â£¡ jsz7758520 2007-03-31 ·¢¼þÈË£º Neil(ľҰºü) ·¢ËÍʱ¼ä£º 2007-03-31 18:57:53 ÊÕ¼þÈË£º python-chinese在lists.python.cn ³ËÍ£º Ö÷Ì⣺ Re: [python-chinese]DjangoÔõô°²×°? ÎÒÊÇÓà Python 2.4 ÔËÐеģ¬µ±Ê±¼ÇµÃÊÔ¹ý Python 2.5 ÓеãÎÊÌâ¡£ÎÒ²»Á˽âÊÇ·ñÖ§³Ö 2.5, ¿ÉÄÜ°²×°¹¤¾ß¶Ô 2.5 µÄÖ§³ÖÓеãÎÊÌ⣿ ÔÚ 07-3-31£¬jsz7758520 <jsz7758520在163.com > дµÀ£º > > »¹ÊÇ°²×°²»ÁË. > ºóÀ´ÎÒÏÂÀ´ÁË0.96°æ±¾µÄdjango,Ö´ÐкóµÄ´íÎóÐÅÏ¢ÈçÏÂ: > > Traceback (most recent call last): > File "C:\Documents and Settings\jsz\×ÀÃæ\Django\setup.py", > line 47, in> scripts = ['django/bin/django-admin.py'], > File "C:\Python25\lib\distutils\core.py", line 139, in > setup > raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg > SystemExit: usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] > ...] > or: setup.py --help [cmd1 cmd2 ...] > or: setup.py --help-commands > or: setup.py cmd --help > > error: no commands supplied > > > > ________________________________ > > jsz7758520 > 2007-03-31 > ________________________________ > > ·¢¼þÈË£º »ÆÒã > ·¢ËÍʱ¼ä£º 2007-03-30 19:28:12 > ÊÕ¼þÈË£º python-chinese在lists.python.cn > ³ËÍ£º > Ö÷Ì⣺ Re: [python-chinese]DjangoÔõô°²×°? > > > django ºÃÏñ²»ÒÀÀµ setuptools ÁË°É£¬ÄãÊÇÓÃµÄ django0.96 Â𣿠> ·ÇÒª setuptools µÄ»°£¬ÄãÈ¥ÏÂÒ»¸ö¾ÍºÃÁË£¬È¥ cheeseshop.python.org ËÑһϠ> > > On 3/30/07, jsz7758520 <jsz7758520在163.com > wrote: > > > > > > > ÎÒ¿´ÁËinstallÎļþ,²¢°ÑDjangoĿ¼copyµ½ÁËpythonµÄLib\site-packages\ÏÂÃæ,²¢Ê¹ÓÃpython½øÐа²×°Ëü,µ«ÊÇ,¾ÍÊÇ°²×°²»ÁË,ʲôÔÒò°¡? > > ´íÎóÐÅÏ¢ÈçÏÂ: > > > > Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] > on win32 > > Type "copyright", "credits" or "license()" for more information. > > > > > **************************************************************** > > Personal firewall software may warn about the connection IDLE > > makes to its subprocess using this computer's internal loopback > > interface. This connection is not visible on any external > > interface and no data is sent to or received from the Internet. > > > **************************************************************** > > > > IDLE 1.2 ==== No Subprocess ==== > > > > > > > > > > --------------------------------------------------------------------------- > > This script requires setuptools version 0.6c1 to run (even to display > > help). I will attempt to download it for you (from > > http://cheeseshop.python.org/packages/2.5/s/setuptools/), > but > > you may need to enable firewall access for this script first. > > I will start the download in 15 seconds. > > > > (Note: if this machine does not have network access, please obtain the > file > > > > > http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c1-py2.5.egg > > > > and place it in this directory before rerunning this script.) > > > --------------------------------------------------------------------------- > > Downloading > http://cheeseshop.python.org/packages/2.5/s/setuptools/setuptools-0.6c1-py2.5.egg > > Traceback (most recent call last): > > File "C:\Python25\Lib\site-packages\Django\setup.py", > line 2, in > > ez_setup.use_setuptools() > > File "C:\Documents and Settings\jsz\×ÀÃæ\Django-0.95\ez_setup.py", line > 72, in use_setuptools > > egg = download_setuptools(version, download_base, to_dir, > download_delay) > > File "C:\Documents and Settings\jsz\×ÀÃæ\Django-0.95\ez_setup.py", line > 126, in download_setuptools > > src = urllib2.urlopen(url) > > File "C:\Python25\lib\urllib2.py", line 121, in urlopen > > return _opener.open(url, data) > > File "C:\Python25\lib\urllib2.py", line 380, in open > > response = meth(req, response) > > File "C:\Python25\lib\urllib2.py", line 491, in http_response > > 'http', request, response, code, msg, hdrs) > > File "C:\Python25\lib\urllib2.py", line 418, in error > > return self._call_chain(*args) > > File "C:\Python25\lib\urllib2.py", line 353, in _call_chain > > result = func(*args) > > File "C:\Python25\lib\urllib2.py", line 499, in http_error_default > > raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) > > HTTPError: HTTP Error 404: Not Found > > > > > > > > ________________________________ > > > jsz7758520 > > 2007-03-30 > > > > > > _______________________________________________ > > 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 > > > > > > -- > http://codeplayer.blogspot.com/ > _______________________________________________ > 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 > _______________________________________________ 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 -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070331/3cbb52d5/attachment-0001.htm
Zeuux © 2025
京ICP备05028076号