我正在使用標點符號系統,this site,我剛剛使用的例子,我沒有創建任何應用程序只是使用示例,我已經完成syncdb,添加到管理員。如何使用django-valuate?
LikeDislike
- 像1
- 踩0
我還增加了記錄到模型後,但是當我去127.0.0.1:8000我有一個錯誤:
DoesNotExist at/ValuationType matching query does not exist. Request Method: GET Request URL: http://127.0.0.1:8000/ Django Version: 1.3.1 Exception Type: DoesNotExist Exception Value: ValuationType matching query does not exist. Exception Location: C: \ Python27 \ lib \ site-packages \ django \ db \ models \ query.py in get, line 349 Python Executable: C: \ Python27 \ python.exe Python Version: 2.7.2 Python Path: ['D: \ \ Django \ \ AppFabric \ \ vote \ \ sample', 'C: \ \ Python27 \ \ lib \ \ site-packages \ \ django_pure_pagination-0.1-py2.7.egg', 'C: \ \ Python27 \ \ lib \ \ site-packages \ \ django_uni_form-0.9.0-py2.7.egg', 'C: \ \ Python27 \ \ lib \ \ site-packages \ \ django_email_confirmation-0.2-py2.7.egg', 'C: \ \ Python27 \ \ lib \ \ site-packages \ \ python_openid-2.2.5-py2.7.egg', 'C: \ \ Python27 \ \ lib \ \ site-packages \ \ oauth2-1.5.211-py2.7.egg', 'C: \ \ Python27 \ \ lib \ \ site-packages \ \ httplib2-0.7.2-py2.7.egg',
'C: \ \ Python27 \ \ lib \ \ site-packages \ \ 0.8.0rc2-py2.7.egg mock-', 'C: \ \ Python27 \ \ lib \ \ site-packages \ \ pip-1.0.2, py2.7.egg' 'C: \ \ Python27 \ \ lib \ \ site-packages \ \ django_socialauth-0.1.2c-py2.7.egg', 'C: \ \ Python27 \ \ lib \ \ site-packages \ \ oauth-1.0.1-py2.7.egg', 'C: \ \ Python27 \ \ lib \ \ site-packages \ \ django_socialregistration-0.5-py2.7.egg', 'C: \ \ Python27 \ \ lib \ \ site-packages \ \ django_disqus-0.4.1-py2.7.egg', 'C: \ \ Python27 \ \ lib \ \ site-packages \ \ django_threadedcomments-0.9-py2.7.egg', 'C: \ \ Python27 \ \ lib \ \ site-packages \ \ django_valuate-1.0_beta_2.2-py2.7.egg', 'C: \ \ Windows \ \ system32 \ \ python27.zip' 'C: \ \ Python27 \ \ DLLs', 'C: \ \ Python27 \ \ lib', 'C: \ \ Python27 \ \ lib \ \ plat-win' 'C: \ \ Python27 \ \ lib \ \ lib-tk', 'C: \ \ Python27', 'C: \ \ Python27 \ \ lib \ \ site-packages', 'C: \ \ Python27 \ \ lib \ \ site-packages \ \ PIL' '../', '../']
問題出在第7,9,11行的模板home.html中,因爲它必須是你放入ValuateType的名字,坦克 – oscar 2012-02-02 20:58:13