可重复使用的评论应用程序,用于学习目的。
eim-comments的Python项目详细描述
可重复使用的评论应用程序,用于学习目的。
安装
从pypi获得最新的稳定版本
pip install eim-comments
从github获取最新提交
pip install -e git+git://github.com/EimantasSl/eim-comments.git#egg=eim_comments
TOdo:描述进一步的安装步骤(编辑/删除以下示例):
将eim_comments添加到INSTALLED_APPS
INSTALLED_APPS=(...,'eim_comments',)
将eim_commentsurl添加到urls.py
urlpatterns=patterns('',...url(r'^/',include('eim_comments.urls')),)
在模板中提供标记/筛选器之前,请使用
{% load eim_comments_tags %}
不要忘记迁移数据库
./manage.py migrate eim_comments
用法
待办事项:描述用法或指向文档。同时描述可用的设置和 模板标签。
贡献
如果您想参与此项目,请执行以下步骤
# Fork this repository # Clone your fork mkvirtualenv -p python2.7 eim-comments make develop git co -b feature_branch master # Implement your feature and tests git add . && git commit git push -u origin feature_branch # Send us a pull request for your feature branch
为了运行测试,只需执行tox。这将安装两个新的 环境(适用于django 1.8和django1.9)并针对这两个环境运行测试 环境。