The source code of Collipa
JavaScript CSS HTML Python Limbo PHP Other
Latest commit 2012aa7 Jan 30, 2016 @yetone Merge pull request #38 from yetone/fix-music5
Fix process 163 music
Permalink
Failed to load latest commit information.
collipa Fix process 163 music Jan 30, 2016
deploy_conf refactor!!! Mar 28, 2015
provisioning fix favicon path Nov 4, 2015
.gitignore add ansible config Nov 4, 2015
README.md fix bug: fix README.md error Oct 31, 2013
deploy.sh change deploy.sh mode Jan 25, 2016
manage.py refactor!!! Mar 28, 2015
requirements.txt update pony version Apr 1, 2015
setup.py fix merge Apr 1, 2015
shell.py refactor!!! Mar 28, 2015
test.py refactor!!! Mar 28, 2015

README.md

collipa

简介

The source of http://collipa.com

配置

mv config.back.py config.py

修改 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 随机字符

安装必要扩展包

安装 MySQL

sudo apt-get install mysql-server

安装 memcached

sudo apt-get install memcached

安装 redis

sudo apt-get install redis-server

安装其他

sudo pip install -r requirements.txt

初始化数据库

python setup.py --init

运行

python app.py

License

Released under the WTFPL license:

http://www.wtfpl.net