测试部分django民意调查应用程序时出错

时间:2015-12-08 04:56:16

标签: django

我的django民意调查应用中出现以下错误。我不明白它的含义,任何人都可以建议我该怎么做?任何解决方案?

NameError at / name 'model' is not defined 
Request Method: GET Request URL:    http://127.0.0.1:8000/ 
Django Version: 1.8.6 
Exception Type: NameError 
Exception Value:     name 'model' is not defined 
Exception Location: c:\Anaconda-installation\mysite\polls\views.py in ResultView, line 26 
Python Executable:  C:\Anaconda-installation\python.exe 
Python Version: 2.7.10 
Python Path:     ['c:\\Anaconda-installation\\mysite',  
                  'C:\\Anaconda-installation\\python27.zip',  
                  'C:\\Anaconda-installation\\DLLs',  
                  'C:\\Anaconda-installation\\lib',  
                  'C:\\Anaconda-installation\\lib\\plat-win',  
                  'C:\\Anaconda-installation\\lib\\lib-tk',  
                  'C:\\Anaconda-installation',  
                  'c:\\anaconda-installation\\lib\\site-packages\\sphinx-1.3.1-py2.7.egg',  
                  'c:\\anaconda-installation\\lib\\site-packages\\setuptools-17.1.1-py2.7.egg', 
                  'C:\\Anaconda-installation\\lib\\site-packages',  
                  'C:\\Anaconda-installation\\lib\\site-packages\\cryptography-0.9.1-py2.7-win-amd64.egg',  
                  'C:\\Anaconda-installation\\lib\\site-packages\\win32',  
                  'C:\\Anaconda-installation\\lib\\site-packages\\win32\\lib',  
                  'C:\\Anaconda-installation\\lib\\site-packages\\Pythonwin'] 
Server time:    Tue, 8 Dec 2015 04:49:21 +0000

0 个答案:

没有答案