Python论坛  - 讨论区

标题:[python-chinese] 如何在其他的程序里使用django写好的models?

2007年04月12日 星期四 16:05

马踏飞燕 honeyday.mj在gmail.com
星期四 四月 12 16:05:28 HKT 2007

我现在有一个写好的django的models,现在需要用wx做一个工具,想调用models,应该怎么写呢?

也就是直接使用django提供的ORM,因为现在用的是sqlalchemy,感觉一个项目用了2个ORM太麻烦,要是能用统一的就方便多了。

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

2007年04月13日 星期五 13:48

Ben Luo benluo在gmail.com
星期五 四月 13 13:48:05 HKT 2007

Django has a sqlalchemy branch in svn. 但好像从来没有更新过。好像是Sqlalchemy 的作者没时间。

On 4/12/07, 马踏飞燕 <honeyday.mj在gmail.com> wrote:
> 我现在有一个写好的django的models,现在需要用wx做一个工具,想调用models,应该怎么写呢?
>
> 也就是直接使用django提供的ORM,因为现在用的是sqlalchemy,感觉一个项目用了2个ORM太麻烦,要是能用统一的就方便多了。
> _______________________________________________
> 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

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

2007年04月13日 星期五 19:44

ygao ygao2004在gmail.com
星期五 四月 13 19:44:12 HKT 2007

On 4/13/07, Ben Luo <benluo在gmail.com> wrote:
>
> Django has a sqlalchemy branch in svn. 但好像从来没有更新过。好像是Sqlalchemy 的作者没时间。


是不是已经dead?,django什么都可以换,唯独orm不能?


> On 4/12/07, 马踏飞燕 <honeyday.mj在gmail.com> wrote:
> > 我现在有一个写好的django的models,现在需要用wx做一个工具,想调用models,应该怎么写呢?
> >
> > 也就是直接使用django提供的ORM,因为现在用的是sqlalchemy,感觉一个项目用了2个ORM太麻烦,要是能用统一的就方便多了。
> > _______________________________________________
> > 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




-- 
※※※※※※※※※※※※※※※※※※※※※※※※
My blog:  http://blog.donews.com/ygao
Forum    http://groups.google.com/group/python_study
※※※※※※※※※※※※※※※※※※※※※※※※
-------------- 下一部分 --------------
一个HTML附件被移除...
URL: http://python.cn/pipermail/python-chinese/attachments/20070413/c9dc8094/attachment.htm 

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

2007年04月26日 星期四 15:14

老生 liangzhengzhang在gmail.com
星期四 四月 26 15:14:14 HKT 2007

ÒªÄܽ«djangoÀïµÄorm³éÈ¡³öÀ´¾ÍºÃÁË£¬Å¼ÏÖÔÚÓÃԭʼµÄSQL×öÊý¾Ý¿â²Ù×÷¡£¡£¡£

»¹ºÃ£¬Ö»ÊÇÒ»¸öСӦÓ㬴óÓ¦ÓõϰֻÄÜÕÒÆäËüµÄORMÁË¡£


ÔÚ07-4-13£¬ygao <ygao2004在gmail.com> дµÀ£º
>
>
>
> On 4/13/07, Ben Luo <benluo在gmail.com> wrote:
> >
> > Django has a sqlalchemy branch in svn. µ«ºÃÏñ´ÓÀ´Ã»Óиüйý¡£ºÃÏñÊÇSqlalchemy µÄ×÷Õßûʱ¼ä¡£
>
>
> ÊDz»ÊÇÒѾ­dead?,djangoʲô¶¼¿ÉÒÔ»»£¬Î¨¶Àorm²»ÄÜ£¿
>
>
> > On 4/12/07, Âí̤·ÉÑà <honeyday.mj在gmail.com> wrote:
> > > ÎÒÏÖÔÚÓÐÒ»¸öдºÃµÄdjangoµÄmodels£¬ÏÖÔÚÐèÒªÓÃwx×öÒ»¸ö¹¤¾ß£¬Ïëµ÷ÓÃmodels£¬Ó¦¸ÃÔõÃ´Ð´ÄØ£¿
> > >
> > > Ò²¾ÍÊÇÖ±½ÓʹÓÃdjangoÌṩµÄORM£¬ÒòΪÏÖÔÚÓõÄÊÇsqlalchemy£¬¸Ð¾õÒ»¸öÏîÄ¿ÓÃÁË2¸öORMÌ«Âé·³£¬ÒªÊÇÄÜÓÃͳһµÄ¾Í·½±ã¶àÁË¡£
> > > _______________________________________________
> > > 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
>
>
>
>
> --
> ¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù
> My blog:  http://blog.donews.com/ygao
> Forum     http://groups.google.com/group/python_study
> ¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù
> _______________________________________________
> 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/20070426/f0c56f61/attachment.htm 

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

2007年04月26日 星期四 15:46

黄毅 yi.codeplayer在gmail.com
星期四 四月 26 15:46:29 HKT 2007

>
> 要能将django里的orm抽取出来就好了,偶现在用原始的SQL做数据库操作。。。
>
> 还好,只是一个小应用,大应用的话只能找其它的ORM了。
>

把 django 的 orm 分出来怕是会一无是处,外面的 orm 比 django orm 好多了啊。

-- 
http://codeplayer.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20070426/ceb6617a/attachment.htm 

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

2007年04月26日 星期四 15:52

wang_zheng_yong wang_zheng_yong在163.com
星期四 四月 26 15:52:14 HKT 2007

Éϴβ»ÊÇÓиöÈËÒѾ­³éÈ¡³öÀ´ÁËÂ𣿠 Âí̤·ÉÑࣿ лСÂü£¿ Íü¼ÇÁË¡£




wang_zheng_yong
2007-04-26



·¢¼þÈË£º ÀÏÉú
·¢ËÍʱ¼ä£º 2007-04-26 15:14:40
ÊÕ¼þÈË£º python-chinese在lists.python.cn
³­ËÍ£º 
Ö÷Ì⣺ Re: [python-chinese]ÈçºÎÔÚÆäËûµÄ³ÌÐòÀïʹÓÃdjangoдºÃµÄmodels£¿

ÒªÄܽ«djangoÀïµÄorm³éÈ¡³öÀ´¾ÍºÃÁË£¬Å¼ÏÖÔÚÓÃԭʼµÄSQL×öÊý¾Ý¿â²Ù×÷¡£¡£¡£

»¹ºÃ£¬Ö»ÊÇÒ»¸öСӦÓ㬴óÓ¦ÓõϰֻÄÜÕÒÆäËüµÄORMÁË¡£

 
ÔÚ07-4-13£¬ygao <ygao2004在gmail.com> дµÀ£º 



On 4/13/07, Ben Luo <benluo在gmail.com > wrote: 
Django has a sqlalchemy branch in svn. µ«ºÃÏñ´ÓÀ´Ã»Óиüйý¡£ºÃÏñÊÇSqlalchemy µÄ×÷Õßûʱ¼ä¡£

ÊDz»ÊÇÒѾ­dead?,djangoʲô¶¼¿ÉÒÔ»»£¬Î¨¶Àorm²»ÄÜ£¿
 
On 4/12/07, Âí̤·ÉÑà < honeyday.mj在gmail.com> wrote:
> ÎÒÏÖÔÚÓÐÒ»¸öдºÃµÄdjangoµÄmodels£¬ÏÖÔÚÐèÒªÓÃwx×öÒ»¸ö¹¤¾ß£¬Ïëµ÷ÓÃmodels£¬Ó¦¸ÃÔõÃ´Ð´ÄØ£¿ 
>
> Ò²¾ÍÊÇÖ±½ÓʹÓÃdjangoÌṩµÄORM£¬ÒòΪÏÖÔÚÓõÄÊÇsqlalchemy£¬¸Ð¾õÒ»¸öÏîÄ¿ÓÃÁË2¸öORMÌ«Âé·³£¬ÒªÊÇÄÜÓÃͳһµÄ¾Í·½±ã¶àÁË¡£
> _______________________________________________ 
> 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 



-- 
¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù
My blog:   http://blog.donews.com/ygao
Forum     http://groups.google.com/group/python_study
¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù¡ù 
_______________________________________________
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/20070426/0cd3b8a3/attachment.html 

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号