在github上自动创建问题的django日志处理程序
django-github-log的Python项目详细描述
当django引发错误时,在github上按错误创建问题组
安装
在settings.py(标签是 可选)
GITHUB_LOG_SETTINGS={'USER':'REPOSITORY-OWNER','REPO':'REPOSITORY-NAME','TOKEN':'GITHUB-API-TOKEN','LABELS':['priority:normal','type:error',...]}
在已安装的应用程序中添加“github日志”
在设置中添加日志处理程序。日志记录['handlers']
'github':{'level':'ERROR','class':'github_log.log.GitHubIssueHandler'},
最后,python manage.py syncdb