Skip to content
The source of Collipa
Branch: master
Clone or download
Pull request Compare This branch is 628 commits behind yetone:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
controllers
deploy_conf
forms
libs
models
static
views
.gitignore
README.md
app.py
config.py
extensions.py
helpers.py
requirements.txt
routers.py
setup.py
test.py

README.md

collipa

简介

The source of http://collipa.com

配置

修改 collipa/config.py 文件:

数据库

  • _DBUSER = "username" # 数据库用户名
  • _DBPASS = "password" # 数据库密码
  • _DBHOST = "localhost" # 数据库地址
  • _DBNAME = "collipa" # 数据库名称

邮箱

  • _SMTPUSER = 'example@gmail.com' # 邮箱用户名
  • _SMTPPASS = 'password' # 邮箱密码
  • _SMTPHOST = 'smtp.gmail.com' # 邮箱地址
  • _SMTPPORT = '587' # 邮箱端口

secret

  • cookie_secret = 'cookiesecret' # cookie secret 随机字符
  • password_secret = 'passwordsecret' # password secret 随机字符

安装必要扩展包

安装 memcached

sudo apt-get install memcached

安装 pony

git clone https://github.com/ponyorm/pony
cd pony
sudo python setup.py install

安装其他

python setup.py --install

初始化数据库

python setup.py --init

运行

python app.py
You can’t perform that action at this time.