Я застреваю при попытке проверить роутер, звоня из Почтальона
@http.route('/nails/login', type='json', auth="public")
def api_login(self, csrf=False, **kwargs):
и звонит в почтальоне с заголовком приложения / json
http://127.0.0.1:8070/nails/login
но журнал всегда возвращает
2018-07-02 14:30:38,123 26497 ERROR ? odoo.http: Exception during JSON request handling.
Traceback (most recent call last):
File "/home/ryu/odoo/odoo-server/odoo/http.py", line 640, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/ryu/odoo/odoo-server/odoo/http.py", line 1453, in _dispatch_nodb
func, arguments = self.nodb_routing_map.bind_to_environ(request.httprequest.environ).match()
File "/usr/local/lib/python2.7/dist-packages/werkzeug/routing.py", line 1573, in match
raise NotFound()
NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
2018-07-02 14:30:38,128 26497 INFO ? werkzeug: 127.0.0.1 - - [02/Jul/2018 14:30:38] "POST /nails/login HTTP/1.1" 200 -