要求:
在一个Django项目中,我安装了Puput,遵循独立博客应用程序的说明,一切正常,直到我想用discus激活博客评论部分
这个Puput comments documentation非常轻,所以可能所有的东西都是直接的,但是在我的例子中,有些东西丢失了或者没有按预期工作
我确实创建了一个Disqs帐户,拥有Disqs shortname,并且我在Disqs API Resurses上注册了我的网站,以获得Disqs API机密。他们都在博客的管理站点上请求
在这一点上,我有一个异常错误/消息:
To use comments you need to specify PUPUT_COMMENTS_PROVIDER in settings.
Request Method: GET
Request URL: http://localhost/blog/why-you-should-include-webassembly-your-knowledge-portfolio-reasons-pragmatic-programmers/
Django Version: 3.0.7
Exception Type: Exception
Exception Value:
To use comments you need to specify PUPUT_COMMENTS_PROVIDER in settings.
Exception Location: /home/helly/dev/.venvs/wanttolearn/lib/python3.8/site-packages/puput/templatetags/puput_tags.py in show_comments, line 102
Python Executable: /home/helly/dev/.venvs/wanttolearn/bin/python3
Python Version: 3.8.6
我试图在我的project settings.pyPUPUT_COMMENTS_PROVIDER = 'Disqus'
中添加一个变量,但这次出现了ValueError错误
not enough values to unpack (expected 2, got 1)
Request Method: GET
Request URL: http://localhost/blog/why-you-should-include-webassembly-your-knowledge-portfolio-reasons-pragmatic-programmers/
Django Version: 3.0.7
Exception Type: ValueError
Exception Value:
not enough values to unpack (expected 2, got 1)
Exception Location: /home/helly/dev/.venvs/wanttolearn/lib/python3.8/site-packages/puput/utils.py in import_model, line 10
Python Executable: /home/helly/dev/.venvs/wanttolearn/bin/python3
Python Version: 3.8.6
谁能帮我找到这个拼图中丢失的那块
目前没有回答
相关问题 更多 >
编程相关推荐