PyBlosxom

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
 
(未显示1个用户的17个中间版本)
第5行: 第5行:
 
http://pyblosxom.sourceforge.net/
 
http://pyblosxom.sourceforge.net/
  
 +
PyBlosxom 可使用 [[mod_python]], [[Twisted]], and [[WSGI]]
 +
 +
vim设置: shiftwidth=4 tabstop=4 expandtab
 
==Install==
 
==Install==
windows 用户请事先安装 http://sourceforge.net/projects/pywin32/
 
然后运行
 
python setup.py install
 
 
Single-user Installation
 
Single-user Installation
 
  copy pyblosxom.cgi and config.py from the web/ directory into your cgi-bin directory
 
  copy pyblosxom.cgi and config.py from the web/ directory into your cgi-bin directory
 
  修改 config.py
 
  修改 config.py
  py["codebase"] = "/home/allen/pyblosxom/"  // linux用户
+
  py["codebase"] = "/usr/local/lib/python2.4/site-packages/Pyblosxom"
  py["codebase"] = "c:\\pyblosxom\\"       // windows用户
+
py['datadir'] = "/home/allen/blog/pyblosxom"
 +
py['blog_encoding'] = "utf-8"
 +
py['default_flavour'] = "html"
 +
py['base_url'] = "http://localhost/weblog"
 +
  py['cacheDriver'] = 'entrypickle'
 +
py['cacheConfig'] = '/home/allen/blog/pyblosxom/cache'
 +
  py["renderer"] = "blosxom"
 +
py['plugin_dirs'] = ['/home/allen/blog/pyblosxom/plugins']
 +
py['load_plugins'] = ["pycalendar", "pyarchives"]
 +
py["static_dir"] = "/home/allen/blog/pyblosxom/static"
 +
py["static_flavours"] = ["html"]
 +
 
Multi-user Installation   
 
Multi-user Installation   
 +
下载  [http://sourceforge.net/project/showfiles.php?group_id=67445&package_id=145140 contributed packages], 如 contrib-1.3.2.tar.gz, 将相关  plugins 
 +
copy home/allen/blog/pyblosxom/plugins/ 目录下
 +
 +
vi pyblosxom.cgi
 
  import cgitb; cgitb.enable() // 去掉  #
 
  import cgitb; cgitb.enable() // 去掉  #
 +
验证你的安装
 +
在/home/allen/blog/pyblosxom/static 创建 firstpost.txt
 +
First Post
 +
<p>
 +
  This is the first post in my blog.
 +
</p>
 
  http://localhost/cgi-bin/pyblosxom.cgi  
 
  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
+
 
+
 
==Users==
 
==Users==
 +
*http://pyblosxom.sourceforge.net/blog
 
*http://bluesock.org/~willg/blog
 
*http://bluesock.org/~willg/blog
 
*http://bonsaibugs.org/
 
*http://bonsaibugs.org/
第29行: 第49行:
 
*http://www.mwolson.org/blog
 
*http://www.mwolson.org/blog
 
http://pyblosxom.sourceforge.net/blog/pyblosxom_users
 
http://pyblosxom.sourceforge.net/blog/pyblosxom_users
 +
 +
[[Category:Blog]]
 +
[[Category:Python]]

2010年8月14日 (六) 16:24的最后版本

PyBlosxom is a lightweight weblog system write by Python

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

http://pyblosxom.sourceforge.net/

PyBlosxom 可使用 mod_python, Twisted, and WSGI

vim设置: shiftwidth=4 tabstop=4 expandtab

[编辑] Install

Single-user Installation

copy pyblosxom.cgi and config.py from the web/ directory into your cgi-bin directory
修改 config.py
py["codebase"] = "/usr/local/lib/python2.4/site-packages/Pyblosxom" 
py['datadir'] = "/home/allen/blog/pyblosxom"
py['blog_encoding'] = "utf-8"
py['default_flavour'] = "html"
py['base_url'] = "http://localhost/weblog"
py['cacheDriver'] = 'entrypickle'
py['cacheConfig'] = '/home/allen/blog/pyblosxom/cache'
py["renderer"] = "blosxom"
py['plugin_dirs'] = ['/home/allen/blog/pyblosxom/plugins']
py['load_plugins'] = ["pycalendar", "pyarchives"]
py["static_dir"] = "/home/allen/blog/pyblosxom/static"
py["static_flavours"] = ["html"]

Multi-user Installation

下载  contributed packages, 如 contrib-1.3.2.tar.gz, 将相关  plugins  
copy home/allen/blog/pyblosxom/plugins/ 目录下
vi pyblosxom.cgi
import cgitb; cgitb.enable() // 去掉  #

验证你的安装

在/home/allen/blog/pyblosxom/static 创建 firstpost.txt
First Post

This is the first post in my blog.

http://localhost/cgi-bin/pyblosxom.cgi 
 

[编辑] Users

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

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

变换
操作
导航
工具箱