Giter Club home page Giter Club logo

minos's Issues

user.htm bug

我发现 user.htm {% if user["username"] != current_user["username"] %}

判断的应该是你访问别人的页面和个人信息的情况,但是判断身份的地方判定的还是自己的power

部分 bug

我的消息页面没分页

修改方法
controller/message.py/MessageHandler最后一行修改为

self.render("message.htm", messages=messages, count=count, cutstr=cutstr, page=page, each=limit)

html 模板增加

<div class="am-panel-footer">
     {% raw pagenav(now = page, count = count, each = each, url = '/message/%d') %}
     <div class="am-cf"></div>
</div>

最近在将这个论坛做一点修改,然后用于我们的 online judge 的论坛,完成后会按照协议开源。现在改的比较乱,就不 pr 了。

能否增加金币支付模块?

打算用minos做一个付费教学社区,不知道作者能否提供接口支持,支持支付宝即时到帐即可~~~~

captcha.png 404

你好,我安装了你的框架,这个是我的配置

"database":
  "config": "mongodb://localhost:27017/"
  "db": "minos"
"global":
  "captcha":
    "comment": !!bool "true"
    "login": !!bool "true"
    "register": !!bool "true"
  "cookie_secret": !!python/unicode "secret-key"
  "debug": !!bool "false"
  "email":
    "key": "key-xxxxx"
    "method": "none"
    "sender": "root@domain"
    "url": "https://api.mailgun.net/v3/domain"
  "imagepath": "./static/upimg"
  "init_money": !!int "10"
  "intranet": !!bool "true"
  "invite_expire": !!int "604800"
  "register": !!python/unicode "invite"
  "site":
    "description": "\u8FD9\u662F\u4E00\u4E2A\u79C1\u5BC6\u7684\u798F\u5229\u5171\u4EAB"
    "keyword": "\u8BBA\u575B"
    "webname": !!python/unicode "binbibi"
"session":
  "db": !!int "1"
  "host": "localhost"
  "port": !!int "6379"

登录和注册都需要captcha,但是网站wjw加载不出来captcha.png,http的请求显示是404,请问我这个是怎么回事,怎么排查这个故障,在哪里查看log,

用户头像上传错误

File "/home/work/Minos/controller/user.py", line 43, in detail_act
"username": {"$eq": username}
OperationFailure: database error: invalid operator: $eq
[E 150520 07:40:17 web:1825] 500 GET /user/detail (127.0.0.1) 7.15ms

我做了如下修改:

diff --git a/controller/user.py b/controller/user.py
"username": {"$eq": username}
"username": self.current_user["username"]

关于find_one函数,mongo中貌似没这个函数,

db.member.find
db.member.find( db.member.findAndModify( db.member.findOne(

一直不明白这个yield函数参数为什么要这样写?
user = yield self.db.member.find_one({
"username": {"$eq": username}
})

怎么用supervisor管理

我这样写出错了。
提示:minos: ERROR (abnormal termination)
求教怎么弄啊~

[program:minos]
command=python /home/minos/mian.py --port=8765
autostart=true                ; supervisord守护程序启动时自动启动tornado
autorestart=true              ; supervisord守护程序重启时自动重启tornado
redirect_stderr=true          ; 将stderr重定向到stdout
stdout_logfile = /home/minos/minos.log

最新版本文章查看bug

刚刚下载了最新代码,发现文章发布后不论付费还是收费,都需要点击购买,直接导致免费文章无法正常查看

requirements 优化

我使用python 2.7.14 安装出错如下:
ERROR: Package 'tornado' requires a different Python: 2.7.14 not in '>= 3.5'
也就是说 tornado>4.1 需要python>3.6,但是我使用python3.6安装报错如下:

Usage: pip [options]

ERROR: Invalid requirement: --allow-external PIL
pip: error: no such option: --allow-external

作者是否可以将以来信息写的更全面些,不放尝试下K神的pipenv

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.