推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
alexapollo
V2EX  ›  Python

写了个第三方评论系统的demo,有没有人一起来完善它?

  •  
  •   alexapollo ·
    geekan · Dec 23, 2013 · 6848 views
    This topic created in 4712 days ago, the information mentioned may be changed or developed.
    如题,虽然现在功能很基础,但已经有不错的效果,也有很长远的计划。

    演示地址: http://www.anwcl.com/contact.html#
    代码库: https://github.com/vine-comment/vine
    57 replies  •  1970-01-01 08:00:00 +08:00
    alexapollo
    alexapollo
    OP
    Dec 23, 2013
    1
    已完成:

    简易响应式DEMO
    基础chrome extension、tampermonkey脚本
    基于URL的独立留言板
    使用iframe来避免css冲突
    firefox/chrome/ie 10,11基础测试
    基础分页、留言成功提示、IP记录等
    alexapollo
    alexapollo
    OP
    Dec 23, 2013
    2
    框架:django + jquery + bootstrap
    用法:网页运营者直接嵌入网页,或者用户主动加载extension。
    后者可以达到任意网页都可以评论的效果,就像ghost一样
    bearcat001
    bearcat001
    Dec 23, 2013❤️1
    3
    顶,有过这个想法,可惜一直没做 =0=
    bearcat001
    bearcat001
    Dec 23, 2013❤️1
    4
    感觉找到当前同在浏览一个页面人更有吸引力,尤其是看网页的时候有问题想问的时候
    alexapollo
    alexapollo
    OP
    Dec 23, 2013
    5
    @bearcat001 来提pr吧!
    alexapollo
    alexapollo
    OP
    Dec 23, 2013
    6
    @bearcat001 可以借鉴一些聊天室的实现,应该不难,来试试呗。。~
    immjun
    immjun
    Dec 23, 2013❤️1
    7
    经友情测试 字母和数字不自动换行 有待改进 还有,如果宽度一定的话,下面的滚动条是否可以去掉呢..?
    immjun
    immjun
    Dec 23, 2013
    8
    @alexapollo 还有字数限制 ...
    immjun
    immjun
    Dec 23, 2013
    9
    你首页的版权信息为啥绝对定位到右边呢 http://www.anwcl.com
    media="all"
    #bottom p {
    position: absolute;
    right: 0;
    }
    是有点不理解哦 , 其实评论系统做的挺好的~
    alexapollo
    alexapollo
    OP
    Dec 23, 2013
    10
    @immjun 了解,前期demo,难免有bug,还有好多功能要做 泪。。
    alexapollo
    alexapollo
    OP
    Dec 23, 2013
    11
    @immjun 首页之前手写的css,正想把它改一改,做漂亮一些
    有没有建议呢~~
    immjun
    immjun
    Dec 23, 2013
    12
    @alexapollo 首页响应式做的挺好的,如果需要更现代化一些的话,可以尝试下 视差 效果... 看你个人喜好啦~
    alexapollo
    alexapollo
    OP
    Dec 23, 2013
    13
    @immjun 哈哈~~ 都是手写的,看了下视差的各个demo,挺不错的,你主页是做前端的吗?
    chinvo
    chinvo
    Dec 23, 2013
    14
    確實是一個很棒的項目,對於 Python 在下也很感興趣。我想,作為 PHP/Node 程序猿,入門 Python 不會太難吧?
    alexapollo
    alexapollo
    OP
    Dec 23, 2013❤️1
    15
    @chinvo 不难,python入门是所有语言最快的,而且函数库很全。
    http://www.codecademy.com/
    https://www.khanacademy.org/
    这两个网站都可以学python,你可以体验一下,熟悉语法一两天就ok了
    chinvo
    chinvo
    Dec 23, 2013
    16
    @alexapollo Thx,目前在下正在搞一個 PHP 實現的用戶信息交換系統,隨著開發的深入,發現 PHP 在很多地方不能滿足系統需求,正在猶豫是否換用 Node 或者其他什麼語言。
    lanbing
    lanbing
    Dec 23, 2013 via Android
    17
    不错的样子
    Fedor
    Fedor
    Dec 23, 2013
    18
    @chinvo 什么需求这么吊, php满足不了。

    phper 表示不服。
    chinvo
    chinvo
    Dec 23, 2013
    19
    @Fedor 多線程→_→,目前用 fsockopen 來作為折中方案。
    在下也是個 PHPer。
    alexapollo
    alexapollo
    OP
    Dec 23, 2013
    20
    刚刚虚拟机开多了,成功跑挂PC
    alexapollo
    alexapollo
    OP
    Dec 23, 2013
    21
    @chinvo 个人比较喜欢python,django整个框架写的好
    node.js有全端优势,但我不认为会比django好
    lizheming
    lizheming
    Dec 23, 2013
    22
    @Fedor 哈哈头像和话好配啊...PHPer握爪TOT
    cyr1l
    cyr1l
    Dec 23, 2013❤️1
    23
    XSS注入失败。。。。
    alexapollo
    alexapollo
    OP
    Dec 23, 2013
    24
    @cyr1l 哈哈 django无所不能 快来pr吧小伙伴
    jesse_luo
    jesse_luo
    Dec 23, 2013
    25
    膜拜A神~~~
    huafang
    huafang
    Dec 23, 2013
    26
    暂时还不会python
    alexapollo
    alexapollo
    OP
    Dec 23, 2013
    27
    @jesse_luo 罗少……………………
    cyr1l
    cyr1l
    Dec 23, 2013❤️1
    28
    @alexapollo 不懂Python, nodejs的我就上了。
    ritksm
    ritksm
    Dec 23, 2013
    29
    既然如此。。就让我来给第一个pr吧。。https://github.com/vine-comment/vine/pull/1
    ritksm
    ritksm
    Dec 23, 2013
    30
    BTW 那个1.cmd不知道干嘛的。。于是我删了。。推荐LZ用这个配置本地排除一下这些文件

    [core]
    excludesfile = ~/.gitignorefile
    RIcter
    RIcter
    Dec 23, 2013
    31
    Django框架的,感觉不错...
    这个和Disqus性质一样么 ..
    alexapollo
    alexapollo
    OP
    Dec 23, 2013
    32
    @ritksm 已合入第一个PR!

    1.cmd是历史产物,windows下可以很方便打开本地命令行~
    alexapollo
    alexapollo
    OP
    Dec 23, 2013
    33
    @RIcter 功能可以做到disqus的两倍……核心思路是它从未做过的。
    说老实话我整个框架都想好了才想起来有disqus这东西,去调研了下发现技术还都差不多。。。
    不得不说巧合多~
    alexapollo
    alexapollo
    OP
    Dec 23, 2013
    34
    @cyr1l 不难,python入门是所有语言最快的,而且函数库很全。
    http://www.codecademy.com/
    https://www.khanacademy.org/
    这两个网站都可以学python,你可以体验一下,熟悉语法一两天就ok了
    RIcter
    RIcter
    Dec 23, 2013
    35
    @alexapollo 关注一下。貌似网站(http://www.anwcl.com)打不开
    alexapollo
    alexapollo
    OP
    Dec 23, 2013
    36
    @RIcter ping 218.108.167.73试试。。渣线路
    alexapollo
    alexapollo
    OP
    Dec 23, 2013
    37
    @immjun 经友情测试 字母和数字不自动换行 有待改进 还有,如果宽度一定的话,下面的滚动条是否可以去掉呢..?

    已fix~
    RIcter
    RIcter
    Dec 23, 2013
    38
    @alexapollo 挂了
    alexapollo
    alexapollo
    OP
    Dec 23, 2013
    39
    @RIcter 渣线路!!过一段我换香港线路。。。
    CRight
    CRight
    Dec 23, 2013 via Android
    40
    不错啊,收到侧边很有创意。
    alexapollo
    alexapollo
    OP
    Dec 23, 2013
    41
    @CRight thx!后续会加入多种模式~关注或者加入~
    ety001
    ety001
    Dec 24, 2013
    42
    我就想知道跟多说的区别是啥?
    alexapollo
    alexapollo
    OP
    Dec 24, 2013
    43
    @ety001 我不是抄disqus的。。
    kernel1983
    kernel1983
    Dec 24, 2013
    44
    @alexapollo python写的一定要顶.
    接下来有实现qq和微博的登陆的计划吗?
    ybmimo
    ybmimo
    Dec 24, 2013❤️1
    45
    俺的建议~ 最下面的评论框可以去掉 然后把分页弄到上面去 让点击操作 都集中到上面。现在分页占两行(亦或是bug?)希望能将它弄成一行。
    ericls
    ericls
    Dec 24, 2013
    46
    disqus也是django的
    有空看看
    yangzh
    yangzh
    Dec 24, 2013
    47
    @alexapollo 忽然之间发现了 1.cmd 这个技巧。。
    这个可以说是 disqus 的开源版本吗?
    alexapollo
    alexapollo
    OP
    Dec 24, 2013
    48
    @kernel1983 在计划里
    alexapollo
    alexapollo
    OP
    Dec 24, 2013
    49
    @ericls 嗯,在调查单里
    alexapollo
    alexapollo
    OP
    Dec 24, 2013
    50
    @yangzh 不是模仿disqus做的,不过类型类似

    准确的说是1.bat,里面写上cmd,就可以开当前目录
    yangzh
    yangzh
    Dec 24, 2013
    51
    @alexapollo 嗯。顺便说一下我这里访问不了你的 demo 站,也许是我这边被qiang了。
    alexapollo
    alexapollo
    OP
    Dec 24, 2013
    52
    @yangzh 线路有点差,你是什么宽带?
    yangzh
    yangzh
    Dec 24, 2013
    53
    @alexapollo 南方的中国电信
    binyuJ
    binyuJ
    Dec 25, 2013
    54
    世界上最遥远的距离不是生与死,而是电信和联通
    alexapollo
    alexapollo
    OP
    Dec 25, 2013
    55
    @yangzh 联通压力大。。我后面可能部署到某个云平台上,会好点
    zjgood
    zjgood
    Jan 4, 2014
    56
    Github上有一个类似的 ,名字叫Juvia https://github.com/phusion/juvia
    alexapollo
    alexapollo
    OP
    Jan 7, 2014
    57
    @zjgood 嗯,在我们的github readme中,有一个待调查的表单,里面有它
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1071 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 74ms · UTC 18:44 · PVG 02:44 · LAX 10:44 · JFK 13:44
    ♥ Do have faith in what you're doing.