Pocoo

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
 
 
(未显示1个用户的6个中间版本)
第4行: 第4行:
  
 
http://www.pocoo.org/
 
http://www.pocoo.org/
 +
 
==Features==
 
==Features==
 
* support for either flat or threaded post view
 
* support for either flat or threaded post view
第18行: 第19行:
 
* avatar support
 
* avatar support
 
* user profiles and settings
 
* 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==
 
==Screenshots==
[[Image:new_pocoo_theme_1.png|thumb|left|Forum View]] [[Image:new_pocoo_theme_1.png|thumb|left|Forum Index]] [[Image:new_pocoo_theme_1.png|thumb|left|Flat View]]
+
<gallery perrow=6>
 +
Image:new_pocoo_theme_1.png|Forum View
 +
Image:new_pocoo_theme_2.png|Forum Index
 +
Image:new_pocoo_theme_3.png|Flat View
 +
</gallery>
 +
 
 +
[[Category:Forum]]
 +
[[Category:Python]]

2010年9月17日 (五) 15:10的最后版本

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

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

变换
操作
导航
工具箱