官术网_书友最值得收藏!

The server development mode

In Odoo 10, a new option was introduced, providing developer-friendly features. To use them, start the server instance with the additional option --dev=all.

This enables a few handy features to speed up our development cycle. The most important are:

  • Reload Python code automatically once a Python file is saved, avoiding a manual server restart
  • Read view definitions directly from the XML files, avoiding manual module upgrades

The --dev option accepts a comma-separated list of options, although the all option will be suitable most of the time. We can also specify the debugger we prefer to use. By default, the Python debugger, pdb, is used. Some people might prefer to install and use alternative debuggers. The other debuggers supported are ipdb and pudb.

The server developer mode requires an additional dependency to be installed, python3-watchdog. Before you can use it in an Ubuntu/Debian system, install:

$ sudo apt-get install python3-watchdog
For versions before Odoo 11 running on Python 2, install python-watchdog instead.
主站蜘蛛池模板: 张家港市| 唐山市| 兴国县| 汤原县| 湖口县| 米易县| 鄂托克旗| 建平县| 沙田区| 平顶山市| 阳城县| 平谷区| 文昌市| 揭西县| 普兰县| 商河县| 萍乡市| 恩施市| 顺义区| 英山县| 太湖县| 博罗县| 小金县| 金山区| 新丰县| 东兴市| 尉氏县| 海安县| 和林格尔县| 巫山县| 封丘县| 长垣县| 石屏县| 抚顺县| 曲水县| 永丰县| 湘潭县| 南宫市| 日土县| 木兰县| 尚志市|