PyBlosxom

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
第7行: 第7行:
 
vim设置: shiftwidth=4 tabstop=4 expandtab
 
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

2007年2月23日 (五) 21:11的版本

PyBlosxom is a lightweight weblog system write by Python

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

http://pyblosxom.sourceforge.net/

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

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

变换
操作
导航
工具箱