How to configure trytond webserver correctly to deliver html?

For some first quick tests, I want to use trytond’s HTTP interface in a browser. Anyhow I only get “405 Method not allowed”. What am I missing?

cd /path/to/tryton-pwd
mkdir var
touch var/test1.sqlite

python3 -m venv _venv
. _venv/bin/activate
pip install trytond

trytond-admin -c trytond.conf -d test1 --all
trytond -c trytond.conf &
wget http://localhost:8000/
[…]
405 METHOD NOT ALLOWED

Config:

[database]
uri = sqlite://
path = /path/to/tryton-pwd/var
default_name = test1
[web]
root = /path/to/tryton-pwd/www

Did you install sao ? You need to have that in order to use http interface.

No. It is not mentioned in the manual. What is this?

As I know sao it’s the web client for trytond, so if you want to access tryton from web browser, you need to install it and configure it. Take a look here how to do it:

If you’re using docker image I think sao is already there.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.