Python论坛  - 讨论区

标题:[python-chinese] python如何访问纯java编写的数据库?

2007年07月06日 星期五 17:18

OnMyWay onmyway.q在gmail.com
星期五 七月 6 17:18:26 HKT 2007

请问各位大虾:

python怎样能访问纯java编写的数据库呢??例如hsqldb,derby....

有没有python写的数据库阿?

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

2007年07月06日 星期五 17:54

Nicholas Ding nicholasdsj在gmail.com
星期五 七月 6 17:54:40 HKT 2007

¸É´àÓÃSQLite°É£¬Òª±Èhsqldb,derbyºÃÓõĶࡣ

On 7/6/07, OnMyWay <onmyway.q在gmail.com> wrote:
>
> ÇëÎʸ÷λ´óϺ£º
>
> pythonÔõÑùÄÜ·ÃÎÊ´¿java±àдµÄÊý¾Ý¿âÄØ£¿£¿ÀýÈçhsqldb,derby....
>
> ÓÐûÓÐpythonдµÄÊý¾Ý¿â°¢£¿
> _______________________________________________
> 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




-- 
Nicholas @ Nirvana Studio
http://www.nirvanastudio.org
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070706/b01f72db/attachment.html 

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

2007年07月07日 星期六 09:31

OnMyWay onmyway.q在gmail.com
星期六 七月 7 09:31:55 HKT 2007

sqlite在windows和linux平台上移动会不会有问题呢?

在 07-7-6,Nicholas Ding<nicholasdsj在gmail.com> 写道:
> 干脆用SQLite吧,要比hsqldb,derby好用的多。
>
>
> On 7/6/07, OnMyWay <onmyway.q在gmail.com> wrote:
> >
> > 请问各位大虾:
> >
> > python怎样能访问纯java编写的数据库呢??例如hsqldb,derby....
> >
> > 有没有python写的数据库阿?
> > _______________________________________________
> > 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
>
>
>
> --
> Nicholas @ Nirvana Studio
> http://www.nirvanastudio.org
> _______________________________________________
> 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年07月07日 星期六 10:10

mic michael.c.choi在gmail.com
星期六 七月 7 10:10:54 HKT 2007

sqlite是跨平台的,绝对没有问题

在 2007-7-7,上午9:31,OnMyWay 写道:

> sqlite在windows和linux平台上移动会不会有问题呢?
>
> 在 07-7-6,Nicholas Ding<nicholasdsj在gmail.com> 写道:
>> 干脆用SQLite吧,要比hsqldb,derby好用的多。
>>
>>
>> On 7/6/07, OnMyWay <onmyway.q在gmail.com> wrote:
>>>
>>> 请问各位大虾:
>>>
>>> python怎样能访问纯java编写的数据库呢??例如hsqldb,derby....
>>>
>>> 有没有python写的数据库阿?
>>> _______________________________________________
>>> 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
>>
>>
>>
>> --
>> Nicholas @ Nirvana Studio
>> http://www.nirvanastudio.org
>> _______________________________________________
>> 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


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

2007年07月07日 星期六 12:01

benyu bbenyu在gmail.com
星期六 七月 7 12:01:13 HKT 2007

Çë½ÌÒ»¸öÎÊÌâ,ÔÚ apache + flup + fastcgi + django0.96 µÄ»·¾³ÏÂ,ÔËÐÐÒÔÏ dj.fcgi ³öÏÖ´íÎó.
µ±È»,Õâ¸ö´íÎó,ÊDz»ÊÇÖ±½ÓÓ°Ïì,ÔËÐÐʱ³öÏÖµÄÒÔÏ´íÎó,ÓÐÍû¸÷λָ½Ì:

1¡¢ÔËÐÐʱ³öÏֵĴíÎóÐÅÏ¢:
[Sat Jul 07 10:11:28 2007] [error] [client 125.77.149.44] FastCGI: incomplete headers (0 b
ytes) received from server "/home/www/xxx.com/project/dj.fcgi", referer: http://xxx.xxxi.com/

µ±È»£¬Õâ¸ö´íÎó²»ÊÇÒ»Ö±³öÀ´µÄ£¬ÊÇż¶û³öÏÖ£®
Ò²²»Çå³þΪʲô£¬ÔÚgoogle.com¡¡Ã»Óз¢ÏÖ½â¾ö·½°¸.

2¡¢ÔËÐÐ python dj.fcgi ʱ³öÏÖÈçÏ´íÎó:
WSGIServer: missing FastCGI param REQUEST_METHOD required by WSGI!
WSGIServer: missing FastCGI param SERVER_NAME required by WSGI!
WSGIServer: missing FastCGI param SERVER_PORT required by WSGI!
WSGIServer: missing FastCGI param SERVER_PROTOCOL required by WSGI!
Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/flup-0.5-py2.5.egg/flup/server/fcgi_base.py", line 558, in run
    protocolStatus, appStatus = self.server.handler(self)
  File "/usr/local/lib/python2.5/site-packages/flup-0.5-py2.5.egg/flup/server/fcgi_base.py", line 1112, in handler
    result = self.application(environ, start_response)
  File "/usr/local/lib/python2.5/site-packages/django/core/handlers/wsgi.py", line 189, in __call__
    response = self.get_response(request)
  File "/usr/local/lib/python2.5/site-packages/django/core/handlers/base.py", line 59, in get_response
    response = middleware_method(request)
  File "/usr/local/lib/python2.5/site-packages/django/middleware/common.py", line 41, in process_request
    if settings.APPEND_SLASH and (old_url[1][-1] != '/') and ('.' not in old_url[1].split('/')[-1]):
IndexError: string index out of range
Content-Type: text/html

3¡¢dj.fcgi ÄÚÈÝ
#!/usr/bin/env python

import os, sys;
import traceback;

try:
        sys.path.insert(0,'/usr/local/lib/python2.5/site-packages/django/bin');
        sys.path.insert(0,'/home/www/xxx.com');
        os.environ['DJANGO_SETTINGS_MODULE'] = 'xxx.settings';
        os.environ['PYTHON_EGG_CACHE'] = './cache';

        from django.core.servers.fastcgi import runfastcgi
        runfastcgi(['method=threaded','daemonize=false']);

except Exception, e:

        f = open('/home/www/xxx.com/logs/debug.file','w');
        traceback.print_exc(file=f);
        f.close();
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070707/0d548b36/attachment.html 

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号