Pocoo

来自开放百科 - 灰狐
2010年9月17日 (五) 15:10Allen (讨论 | 贡献)的版本

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转到: 导航, 搜索

Pocoo is an open-source bulletin board software (aka message board) written in Python. It provides an advanced plugin system with a component architecture which allows other developers to modify Pocoo to their liking without the need to touch existing source code. Because it uses SQLAlchemy, it is possible to use either MySQL, SQLite, Oracle or Postgres as the storage backend.

It's Blog also based on Pocoo.

http://www.pocoo.org/

Features

  • support for either flat or threaded post view
  • readable URLs, one URL works for both flat and threaded view
  • use a context sensitive admin panel which means that you wherever you are just can click an "edit" button to edit stuff embedded in the page
  • use JSON-RPC and XmlHTTPRequest to dynamically fetch data where useful (using JQuery in combination with some parts of the AJS javascript library)
  • but provide a fallback systems for users without javascript
  • very powerful plugin system
  • extensible authentication system
  • WSGI compatibility
  • database support for MySQL, Sqlite, Postgres, Oracle
  • BBCode/rst/safehtml parsers for markup
  • Javascript editors for the markup
  • avatar support
  • user profiles and settings

Install

install Dependencies packages

wget http://wsgiarea.pocoo.org/colubrid/dist/Colubrid-0.10.tar.gz
cd Colubrid-0.10
python setup.py install
wget http://wsgiarea.pocoo.org/jinja/dist/Jinja-0.9.tar.gz
cd Jinja-0.9
python setup.py install
wget http://switch.dl.sourceforge.net/sourceforge/sqlalchemy/SQLAlchemy-0.3.5.tar.gz
cd SQLAlchemy-0.3.5
python setup.py install // 若 setuptools 版本不对,可安装新版本
wget http://cheeseshop.python.org/packages/source/s/simplejson/simplejson-1.5.tar.gz
cd simplejson-1.5
python setup.py install
wget http://switch.dl.sourceforge.net/sourceforge/mysql-python/MySQL-python-1.2.1_p2.tar.gz
cd MySQL-python-1.2.1_p2
python setup.py install
对 pysqllite 
#apt-get isntall python2.4-sqlit // python2.3-sqlit or python2.5-sqlit
对 postgresql/psycopg http://www.initd.org/tracker/psycopg
#apt-get install python2.3-psycopg

install Pocoo

wget http://cheeseshop.python.org/packages/source/P/Pocoo/Pocoo-0.1.5.tar.gz
cd Pocoo-0.1.5
python setup.py install

Creating a Pocoo instance

mkdir instance
python /usr/local/lib/python2.4/site-packages/Pocoo-0.1.5-py2.4.egg/pocoo/management.py 
createinstance instance/
cd instance
vi pocoo.conf 
uri = sqlite:////tmp/test.db
#uri = postgres://pocoo@localhost/pocoo
#uri = mysql://root@localhost/pocoo

Creating test data

SQLite database file will be created automatically
POCOO_ROOT=/path/to/instance python Pocoo-0.1.5/scripts/make_testdata.py 

Starting Server

python /path/to/instance/manage.py runserver
http://localhost:8080  

Screenshots

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

变换
操作
导航
工具箱