PyBlosxom

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
第50行: 第50行:
 
  Now we're going to verify your plugin configuration.
 
  Now we're going to verify your plugin configuration.
 
  You have chosen not to load any plugins.
 
  You have chosen not to load any plugins.
 
+
修改 config.py
 +
py['base_url'] = "http://localhost/weblog"
 +
py["renderer"] = "blosxom"
 +
py['plugin_dirs'] = ['c:\\myweb\\pyblosxom\\plugins']
 +
py['load_plugins'] = ["pycalendar", "pyfortune", "pyarchives"]
  
 
==Users==
 
==Users==
 +
*http://pyblosxom.sourceforge.net/blog
 
*http://bluesock.org/~willg/blog
 
*http://bluesock.org/~willg/blog
 
*http://bonsaibugs.org/
 
*http://bonsaibugs.org/

2007年2月23日 (五) 16:48的版本

PyBlosxom is a lightweight weblog system write by Python

PyBlosxom 最吸引人的就是其插件化,在完成基本blog功能,其扩展功能可通过插件来完成。

http://pyblosxom.sourceforge.net/

Install

windows 用户请事先安装 http://sourceforge.net/projects/pywin32/ 然后运行

python setup.py install

Single-user Installation

copy pyblosxom.cgi and config.py from the web/ directory into your cgi-bin directory
修改 config.py
py["codebase"] = "/home/allen/pyblosxom/"  // linux用户
py["codebase"] = "c:\\pyblosxom\\"       // windows用户

Multi-user Installation

import cgitb; cgitb.enable() // 去掉  #
http://localhost/cgi-bin/pyblosxom.cgi 
500 Internal Server Error
[Fri Feb 23 15:51:38 2007] [error] [client 127.0.0.1] (OS 3)系统找不到指定的路径。: 
couldn't spawn  child process:  C:/apache-2.2.3/cgi-bin/pyblosxom.cgi

C:/apache-2.2.3/cgi-bin/python pyblosxom.cgi

Welcome to PyBlosxom's installation verification system.
------
]] printing diagnostics [[
pyblosxom:   1.3.2 2/13/2006
sys.version: 2.3 (#46, Jul 29 2003, 18:54:32) [MSC v.1200 32 bit (Intel)]
os.name:     nt
codebase:    c:\myweb\pyblosxom\
------
]] checking config file [[
config has 16 properties set.
missing optional property: 'base_url'
missing optional property: 'renderer'
missing optional property: 'cacheDriver'
missing optional property: 'cacheConfig'
missing optional property: 'plugin_dirs'
missing optional property: 'load_plugins'
Refer to the documentation for what properties are available
and what they do.
PASS: config file is fine.
------
]] checking datadir [[
PASS: datadir is there.  Note: this does not check whether
     your webserver has permissions to view files therein!
------
Now we're going to verify your plugin configuration.
You have chosen not to load any plugins.

修改 config.py

py['base_url'] = "http://localhost/weblog"
py["renderer"] = "blosxom"
py['plugin_dirs'] = ['c:\\myweb\\pyblosxom\\plugins']
py['load_plugins'] = ["pycalendar", "pyfortune", "pyarchives"]

Users

http://pyblosxom.sourceforge.net/blog/pyblosxom_users

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱