[python-chinese] [CPyUG:38922] Django的orm有问题?

cai xiaozhong icaicai在gmail.com
星期日 一月 27 12:56:11 HKT 2008


ÊÇ·ñÓпÉÄÜÊÇÊý¾Ý¿âµÄÁ¬½Ó±»¶Ï¿ªÁË£¿
mysql»á×Ô¶¯¶Ï¿ªsleepʱ¼ä¹ý³¤µÄÁ¬½Ó£¬ºÃÏñÊÇ8¸öСʱ¡£


2008/1/23 Çå·ç <paradise.qingfeng在gmail.com>:

> ´úÂëÔËÐÐʱÊÇ·ñÕýÈ·¼ÓÔØÁËÏîÄ¿µÄsettings.py?
>
> 2008/1/22 Arui Zen <dujunfly在gmail.com>:
> > Çé¿öÈçÏÂ:
> > ÎҵijÌÐòÊÇÒ»¸öserverÍø¹Ø,ÐèÒª7X24µÄÅÜ,ÕâÀïÃæÓõ½ÈçÏÂÒ»¸öº¯Êý:
> >
> >     def get_CustomerNo(slef,imr_jid,cs_name):
> >         dbopt_logger.debug("--- get_CustomerNo begin ---")
> >         dbopt_logger.debug(imr_jid)
> >         dbopt_logger.debug(cs_name)
> >         try:
> >             result = cSs.objects.filter(imr=
> > IMR.objects.get(jid=imr_jid).imrID,cs_name=cs_name)[0].customerNo
> >         except Exception,value:
> >              dbopt_logger.error("*** get_CustomerNo error ,value is %s"
> %
> > value )
> >             dbopt_logger.error("--- get_CustomerNo end ---")
> >         return result
> >
> > ÔÚshellÏÂ(python manage.py shell)ÔËÐÐ,ûÓÐÎÊÌâ,±ÈÈçimr_jidÓÃhoho.testcom.com
> > cs_nameÓÃ hoho_test在testcom.com
> >
> > µÃµ½µÄresultÊÇ2L
> >
> > ¶øÇÒÎÞÂÛÔËÐм¸´Î¶¼ÊÇÒ»ÑùµÄ½á¹û,²»»ØÅ×Òì³£.
> >
> > ¹ÖÒìµÄÊÇ,ÎÞÂÛ°×Ìì²âÊÔÈËÔ±ÈçºÎÕÛÌÚÕâ¸ö³ÌÐò,¶¼²»»áÓÐÎÊÌâ,¾ÍÊÇÈç¹ûÒ»ÍíÉϲ»¶¯Ëü,µÚ¶þÌìÔçÉÏÒ»À´¿Ï¶¨×ßµ½ÕâÀï¾ÍËÀµô!
> > Êä³öµÄÒì³£ÈçÏÂ:
> >
> > "*** get_CustomerNo error ,value is (0,'')
> > ÕâÊÇΪɶ?
> > DjangoµÄORMÊDz»ÊÇÓÐÎÊÌâ°¡?
> > DjangoµÄ°æ±¾ÊÇ: 0.97 pre
> >
> > Çë°ïæ·ÖÎöÒ»ÏÂ.
> >
> > --
> >
> > DJ
> >  --~--~---------~--~----~------------~-------~--~----~
> >  '''ÓʼþÀ´×ÔGroups "python-cn"--China Py User Group
> >  ÏêÇé: http://groups-beta.google.com/group/python-cn
> >  ·¢ÑÔ: python-cn在googlegroups.com
> >  Í˶©: python-cn-unsubscribe在googlegroups.com
> >  ά»ù: http://wiki.woodpecker.org.cn/moin/CPUG
> >  Öé½­ÊÂÎñ: http://groups.google.com/group/zpug
> >  ¶«ÄÏÊÂÎñ: http://groups.google.com/group/cpug-eastchina
> >  ±±¾©ÊÂÎñ: http://groups.google.com/group/bpug
> >  ÖйúÊÂÎñ: http://groups.google.com/group/CPUG
> >  ͬÖÊÁбí: http://python.cn/mailman/listinfo/python-chinese
> >  '''
> >  -~----------~----~----~----~------~----~------~--~---
> >
> >
>
>
>
> --
> http://qingfeng.ushared.com/blog/
> _______________________________________________
> 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/20080127/ece3dec2/attachment.html 


关于邮件列表 python-chinese 的更多信息