https://github.com/yetone/feather
http://feather.im 的源代码。
https://github.com/yetone/feather
Last synced: about 1 year ago
JSON representation
http://feather.im 的源代码。
- Host: GitHub
- URL: https://github.com/yetone/feather
- Owner: yetone
- Created: 2012-07-16T06:39:33.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-11-02T15:18:14.000Z (over 13 years ago)
- Last Synced: 2025-03-16T21:05:42.479Z (about 1 year ago)
- Language: Python
- Homepage: feather.im
- Size: 485 KB
- Stars: 54
- Watchers: 8
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Feather
=======
## 简介
A Community Web App like [V2EX](http://www.v2ex.com).
一个模仿 [V2EX](http://www.v2ex.com) 的 Web 程序,用 [Flask](http://flask.pocoo.org) 这个微框架写成。
的源代码。
第一个 Web App,很简陋,望各位高手指点。
## 安装插件
- flask-sqlalchemy
- flask-markdown
- flask-script
- flask-cache
- python-memcached
## 配置
### 数据库信息
修改 feather/config.py 文件:
- _DBUSER = "" # 数据库用户名
- _DBPASS = "" # 数据库密码
- _DBHOST = "localhost" # 数据库服务器 默认 localhost
- _DBNAME = "feather" # 数据库名称 默认 feather
### 数据库选择
修改 feather/__init__.py 文件:
- app.config.from_object('feather.config.DevConfig') # SQLite
- app.config.from_object('feather.config.ProConfig') # MySQL
用 # 注销其一
## 运行
### 初始化数据库
- python run.py createall
### 启动
- python run.py runserver
### 运行
- 于浏览器中打开:http://127.0.0.1:8888