Python论坛  - 讨论区

标题:[python-chinese] [Django]找不到SITE_ID bug

2005年07月18日 星期一 19:41

limodou limodou at gmail.com
Mon Jul 18 19:41:01 HKT 2005

我在按第二部教程做到配置完mod_python之后,在浏览器中执行:

http://localhost/admin/

apache 的错误日志报:

[Mon Jul 18 19:16:59 2005] [error] [client 127.0.0.1] PythonHandler
django.core.handler:   File
"C:\\Python24\\Lib\\site-packages\\mod_python\\apache.py", line 299,
in HandlerDispatch\n    result = object(req)
[Mon Jul 18 19:16:59 2005] [error] [client 127.0.0.1] PythonHandler
django.core.handler:   File
"C:\\python24\\Lib\\site-packages\\django-1.0.0-py2.4.egg\\django\\core\\handler.py",
line 11, in handler\n    return ModPythonHandler()(req)
[Mon Jul 18 19:16:59 2005] [error] [client 127.0.0.1] PythonHandler
django.core.handler:   File
"C:\\python24\\Lib\\site-packages\\django-1.0.0-py2.4.egg\\django\\core\\handlers\\modpython.py",
line 142, in __call__\n    self.load_middleware()
[Mon Jul 18 19:16:59 2005] [error] [client 127.0.0.1] PythonHandler
django.core.handler:   File
"C:\\python24\\Lib\\site-packages\\django-1.0.0-py2.4.egg\\django\\core\\handlers\\modpython.py",
line 175, in load_middleware\n    except ImportError, e:
[Mon Jul 18 19:16:59 2005] [error] [client 127.0.0.1] PythonHandler
django.core.handler: ImproperlyConfigured: Error importing middleware
django.middleware.common: "cannot import name SITE_ID"

不知道这个SITE_ID是怎么回事,有人遇到吗?
-- 
I like python! 
My Donews Blog: http://www.donews.net/limodou
New Google Maillist: http://groups-beta.google.com/group/python-cn

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

2005年07月18日 星期一 20:31

范仕良 szfansl at 21cn.net
Mon Jul 18 20:31:56 HKT 2005

PLONE/ZOPE/PYTHON/的编程高手,您好!

	      我公司有一项目,
需一至二名PLONE/ZOPE/PYTHON/的编程高手,月薪5000--20000, 月薪要求低于5000的入门新手暂不考虑。
需一至二名C++高手,编写一个类似中国游戏中心的客户端软件,月薪5000--20000,有过类似经验的高手最好,月薪要求低于5000的入门新手暂不考虑 。
 工作地点:深圳


        致
礼!
 				

        范仕良
        szfansl at 21cn.net
          2005-07-18

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

2005年07月19日 星期二 00:48

张骏 zhangj at foreseen-info.com
Tue Jul 19 00:48:32 HKT 2005

setting里面加一句
SITE_ID=1

最新版的 django-admin.py startproject 已经把这个bug修正了
----------------------- Original Message -----------------------
From:    limodou <limodou at gmail.com>
To:      PythonCN <python-chinese at lists.python.cn>, "Python.cn at google" <python-cn at googlegroups.com>
Date:    Mon, 18 Jul 2005 19:41:01 +0800
Subject: [python-chinese] [Django]找不到SITE_ID bug
----------------------------------------------------------------
> 我在按第二部教程做到配置完mod_python之后,在浏览器中执行:
> 
> http://localhost/admin/
> 
> apache 的错误日志报:
> 
> [Mon Jul 18 19:16:59 2005] [error] [client 127.0.0.1] PythonHandler
> django.core.handler:   File
> "C:\\Python24\\Lib\\site-packages\\mod_python\\apache.py", line 299,
> in HandlerDispatch\n    result = object(req)
> [Mon Jul 18 19:16:59 2005] [error] [client 127.0.0.1] PythonHandler
> django.core.handler:   File
> "C:\\python24\\Lib\\site-packages\\django-1.0.0-py2.4.egg\\django\\core\\handler.py",
> line 11, in handler\n    return ModPythonHandler()(req)
> [Mon Jul 18 19:16:59 2005] [error] [client 127.0.0.1] PythonHandler
> django.core.handler:   File
> "C:\\python24\\Lib\\site-packages\\django-1.0.0-py2.4.egg\\django\\core\\handlers\\modpython.py",
> line 142, in __call__\n    self.load_middleware()
> [Mon Jul 18 19:16:59 2005] [error] [client 127.0.0.1] PythonHandler
> django.core.handler:   File
> "C:\\python24\\Lib\\site-packages\\django-1.0.0-py2.4.egg\\django\\core\\handlers\\modpython.py",
> line 175, in load_middleware\n    except ImportError, e:
> [Mon Jul 18 19:16:59 2005] [error] [client 127.0.0.1] PythonHandler
> django.core.handler: ImproperlyConfigured: Error importing middleware
> django.middleware.common: "cannot import name SITE_ID"
> 
> 不知道这个SITE_ID是怎么回事,有人遇到吗?
> -- 
> I like python! 
> My Donews Blog: http://www.donews.net/limodou
> New Google Maillist: http://groups-beta.google.com/group/python-cn

--------------------- Original Message Ends --------------------

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

2005年07月19日 星期二 08:32

limodou limodou at gmail.com
Tue Jul 19 08:32:29 HKT 2005

谢谢。我已经知道了。看来动作太快也未必是件好事啊:)

在 05-7-19,张骏<zhangj at foreseen-info.com> 写道:
> setting里面加一句
> SITE_ID=1
> 
> 最新版的 django-admin.py startproject 已经把这个bug修正了
> ----------------------- Original Message -----------------------
> From:    limodou <limodou at gmail.com>
> To:      PythonCN <python-chinese at lists.python.cn>, "Python.cn at google" <python-cn at googlegroups.com>
> Date:    Mon, 18 Jul 2005 19:41:01 +0800
> Subject: [python-chinese] [Django]找不到SITE_ID bug
> ----------------------------------------------------------------
> > 我在按第二部教程做到配置完mod_python之后,在浏览器中执行:
> >
> > http://localhost/admin/
> >
> > apache 的错误日志报:
> >
> > [Mon Jul 18 19:16:59 2005] [error] [client 127.0.0.1] PythonHandler
> > django.core.handler:   File
> > "C:\\Python24\\Lib\\site-packages\\mod_python\\apache.py", line 299,
> > in HandlerDispatch\n    result = object(req)
> > [Mon Jul 18 19:16:59 2005] [error] [client 127.0.0.1] PythonHandler
> > django.core.handler:   File
> > "C:\\python24\\Lib\\site-packages\\django-1.0.0-py2.4.egg\\django\\core\\handler.py",
> > line 11, in handler\n    return ModPythonHandler()(req)
> > [Mon Jul 18 19:16:59 2005] [error] [client 127.0.0.1] PythonHandler
> > django.core.handler:   File
> > "C:\\python24\\Lib\\site-packages\\django-1.0.0-py2.4.egg\\django\\core\\handlers\\modpython.py",
> > line 142, in __call__\n    self.load_middleware()
> > [Mon Jul 18 19:16:59 2005] [error] [client 127.0.0.1] PythonHandler
> > django.core.handler:   File
> > "C:\\python24\\Lib\\site-packages\\django-1.0.0-py2.4.egg\\django\\core\\handlers\\modpython.py",
> > line 175, in load_middleware\n    except ImportError, e:
> > [Mon Jul 18 19:16:59 2005] [error] [client 127.0.0.1] PythonHandler
> > django.core.handler: ImproperlyConfigured: Error importing middleware
> > django.middleware.common: "cannot import name SITE_ID"
> >
> > 不知道这个SITE_ID是怎么回事,有人遇到吗?
> > --
> > I like python!
> > My Donews Blog: http://www.donews.net/limodou
> > New Google Maillist: http://groups-beta.google.com/group/python-cn
> 
> --------------------- Original Message Ends --------------------
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 


-- 
I like python! 
My Donews Blog: http://www.donews.net/limodou
New Google Maillist: http://groups-beta.google.com/group/python-cn

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号