PyBlosxom

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
第14行: 第14行:
 
  py["codebase"] = "/home/allen/pyblosxom/"  // linux用户
 
  py["codebase"] = "/home/allen/pyblosxom/"  // linux用户
 
  py["codebase"] = "c:\\pyblosxom\\"      // windows用户
 
  py["codebase"] = "c:\\pyblosxom\\"      // windows用户
 +
py['base_url'] = "http://localhost/weblog"
 +
py["renderer"] = "blosxom"
 +
py['plugin_dirs'] = ['c:\\myweb\\pyblosxom\\plugins']
 +
py['load_plugins'] = ["pycalendar", "pyarchives"]
 
Multi-user Installation   
 
Multi-user Installation   
 +
vi pyblosxom.cgi
 
  import cgitb; cgitb.enable() // 去掉  #
 
  import cgitb; cgitb.enable() // 去掉  #
 
  http://localhost/cgi-bin/pyblosxom.cgi  
 
  http://localhost/cgi-bin/pyblosxom.cgi  
500 Internal Server Error
+
ImportError: No module named pycalendar
[Fri Feb 23 15:51:38 2007] [error] [client 127.0.0.1] (OS 3)系统找不到指定的路径。:  
+
ImportError: No module named pyarchives
  couldn't spawn child process:  C:/apache-2.2.3/cgi-bin/pyblosxom.cgi
+
 
 +
  下载 contributed packages, 如 contrib-1.3.2.tar.gz, 将 pycalendar.py, pyarchives.py copy home/allen/blog/pyblosxom/plugins/ 目录下
 
   
 
   
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==
 
==Users==
 
*http://pyblosxom.sourceforge.net/blog
 
*http://pyblosxom.sourceforge.net/blog

2007年2月23日 (五) 19:12的版本

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用户
py['base_url'] = "http://localhost/weblog"
py["renderer"] = "blosxom"
py['plugin_dirs'] = ['c:\\myweb\\pyblosxom\\plugins']
py['load_plugins'] = ["pycalendar", "pyarchives"]

Multi-user Installation

vi pyblosxom.cgi
import cgitb; cgitb.enable() // 去掉  #
http://localhost/cgi-bin/pyblosxom.cgi 

ImportError: No module named pycalendar ImportError: No module named pyarchives

下载  contributed packages, 如 contrib-1.3.2.tar.gz, 将 pycalendar.py, pyarchives.py copy home/allen/blog/pyblosxom/plugins/ 目录下

Users

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

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

变换
操作
导航
工具箱