得到了这个怪异的错误
Installation failed with message Failed to finalize session : INSTALL_FAILED_USER_RESTRICTED: Install canceled by user.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
Run Code Online (Sandbox Code Playgroud)
当我试图在我的redmi 4中运行apk时 MIUI 8.5.4.0
启用OEM解锁
解决方案
注意:在通过USB打开安装时弹出一个说明设备暂时受限制
我正在从[THIS] [1]教程学习Django.一切都很顺利,直到这一步:
现在更改您的民意调查/ index.html模板:
<li><a href="{% url 'detail' poll.id %}">{{ poll.question }}</a></li>
Run Code Online (Sandbox Code Playgroud)
指向命名空间详细信息视图:
<li><a href="{% url 'polls:detail' poll.id %}">{{ poll.question }}</a></li>
Run Code Online (Sandbox Code Playgroud)
你可以看到整段[HERE] [2].
这就是我将'细节'改为'民意调查:细节'之后发生的事情:
NoReverseMatch at /polls/
'polls' is not a registered namespace
Request Method: GET
Request URL: http://127.0.0.1:8000/polls/
Django Version: 1.6.4
Exception Type: NoReverseMatch
Exception Value:
'polls' is not a registered namespace
Exception Location: D:\Programy\Python 3.4\lib\site-packages\django\core\urlresolvers.py in reverse, line 528
Python Executable: D:\Programy\Python 3.4\python.exe
Python Version: 3.4.0
Python Path:
['D:\\dziango\\strona1',
'D:\\Programy\\Python 3.4\\python34.zip',
'D:\\Programy\\Python 3.4\\DLLs',
'D:\\Programy\\Python 3.4\\lib',
'D:\\Programy\\Python 3.4',
'D:\\Programy\\Python …Run Code Online (Sandbox Code Playgroud)