Skip to content

Instantly share code, notes, and snippets.

writing bugs


writing bugs
Block or report user

Report or block mtianyan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mtianyan /
Created Jan 14, 2019
[flask] Flask Restless 20 行代码搞定服务器 CURD 接口
blueprint = manager.create_api_blueprint(Person, methods=['GET', 'POST'])
mtianyan / help.txt
Created Jan 4, 2019
[xadmin] ueditor Error
View help.txt
在xadmin2+Django2.1+Python3.6.6中,出现render() got an unexpected keyword argument 'renderer'错误
def render(self, name, value, attrs=None):
# 修改为
def render(self, name, value, attrs=None, renderer=None):
mtianyan /
Created Jan 3, 2019
[python] form_data_to_dict
import re
import json
post_data = """
utf8: ✓
authenticity_token: +3wLsKUPfQGQyMyTuJbJFmdIZZtaoS2QgB9NgSOr0rtoqE1/lmx0WOXpGRh3v+yoXeHeWCtA==
session[password]: 123456
session[oversea]: false
captcha[validation][challenge]: 763dc07fa62749901039eead5a8211cf
captcha[validation][gt]: ec47641997d5292180681a247db3c92e
mtianyan / mysql8.bat
Created Jan 3, 2019
[mysql8] init root password
View mysql8.bat
use mysql;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的密码';
mtianyan / win-proxy.bat
Created Dec 26, 2018
[windows] cmd->proxy
View win-proxy.bat
set http_proxy=socks5://
set https_proxy=socks5://
set ftp_proxy=socks5://
You can’t perform that action at this time.