编辑的时候出现了ValueError的问题
编辑的时候,弹出:
ValueError at /blog/edit/action/
invalid literal for int() with base 10: ''
Request Method: POST
Request URL: http://localhost:8000/blog/edit/action/
Django Version: 1.11
Exception Type: ValueError
Exception Value:
invalid literal for int() with base 10: ''
Exception Location: C:\Users\Administrator\AppData\Local\Programs\Python\Python35\lib\site-packages\django-1.11-py3.5.egg\django\db\models\fields\__init__.py in get_prep_value, line 962
Python Executable: C:\Users\Administrator\AppData\Local\Programs\Python\Python35\python.exe
Python Version: 3.5.2
Python Path:
['F:\\django学习\\myblog',
'C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages\\django-1.11-py3.5.egg',
'C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python35\\python35.zip',
'C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python35\\DLLs',
'C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python35\\lib',
'C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python35',
'C:\\Users\\Administrator\\AppData\\Roaming\\Python\\Python35\\site-packages',
'C:\\Users\\Administrator\\AppData\\Local\\Programs\\Python\\Python35\\lib\\site-packages']
Server time: 星期四, 20 四月 2017 06:24:08 +0000