在view的方法中,没有接收正则匹配到的分组()的值,会默认传过去的值
TypeError at /3
show() takes exactly 1 argument (2 given)
Request Method:
GET
Request URL:
http://127.0.0.1:8000/3
Django Version:
1.8.2
Exception Type:
TypeError
Exception Value:
show() takes exactly 1 argument (2 given)
Exception Location:
/home/python/.virtualenvs/h1/local/lib/python2.7/site-packages/django/core/handlers/base.py in get_response, line 132
Python Executable:
/home/python/.virtualenvs/h1/bin/python
Python Version:
2.7.12
Python Path:
['/home/python/Desktop/django/test1',
'/home/python/.virtualenvs/h1/lib/python2.7',
'/home/python/.virtualenvs/h1/lib/python2.7/plat-x86_64-linux-gnu',
'/home/python/.virtualenvs/h1/lib/python2.7/lib-tk',
'/home/python/.virtualenvs/h1/lib/python2.7/lib-old',
'/home/python/.virtualenvs/h1/lib/python2.7/lib-dynload',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk',
'/home/python/.virtualenvs/h1/local/lib/python2.7/site-packages',
'/home/python/.virtualenvs/h1/lib/python2.7/site-packages']
Server time: 星期一, 26 三月 2018 13:09:01 +0800