raise LookupError(‘the converter %r does not exist’ % converter_name)
LookupError: the converter ‘init’ does not exist
找了半天错误,
最后发现事
@home.route(‘/like-post/<init:id>’)
把int写成了init
改成
@home.route(‘/like-post/<int:id>’)
就好了
raise LookupError(‘the converter %r does not exist’ % converter_name)
LookupError: the converter ‘init’ does not exist
找了半天错误,
最后发现事
@home.route(‘/like-post/<init:id>’)
把int写成了init
改成
@home.route(‘/like-post/<int:id>’)
就好了