Quickly build ODOO10 development environment under Mac

Source: Internet
Author: User
Tags install homebrew postgresql install node git clone

One: Installing PostgreSQL

Download and install the PostgreSQL database: http://download.csdn.net/download/qq_28745795/10235366

Please keep in mind that you need to make a password for the Super administrator during installation.

Two: Install Pgadmin

Just now the installation package comes with PgAdmin3, we can also download the new version of the Pgadmin to perform the graphical operation of the database.

Three: Install Pycharm

Download the installation pycharm.

Four: Building the environment

1: Install Homebrew

" $ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install) "

2: Install Python

Brew Update # Brew Install Python

3: Dependencies required to install the pillow

Brew install FreeType JPEG libpng libtiff webp XZ

4: Install node

Brew Install node

5: Install less and LESS-PLUGIN-CLEAN-CSS

sudo npm install-g less less-plugin-clean-css

Five: Download Odoo

git clone https://github.com/odoo/odoo.git-b 10.0--depth=1

VI: Configuration Item Interpreter

Open the fifth step download Odoo10 directory with pycharm, click Pycharam--preference--project interpreter--add local--new environment--base Interpreter: Select the brew installation python--tick the Inherit global site-packages below (inherit the dependency package in the system environment)

Seven: Install Odoo10 dependency Package

1) Smart installation: General, after the configuration of the project interpreter, Pycharm will automatically detect the dependency, and in the menu bar pop-up prompts, at this time, click "Install requirement" can be installed automatically.

2) Manual Installation:

sudo easy_install pip   // install pippip install-r requirements.txt   // Install Odoo dependency Package 

Eight: Create a database login role

Open Pgadmin and connect to the local database. At the bottom of the "Login role" right-click, new Login Role "Remember permissions a check can create a database, otherwise Odoo cannot create a database through this user"

IX: Configure project Run options

Open the project with Pycharm, and then, under the Run menu, choose Edit Configurations to add the run options:

1: Script Path: Select a. py file under the Odoo10 directory, typically start.py, odoo-bin.py, and so on.  2:P arameters: Configuration starts the entry and can be specified by a text file. The main parameters are:   -C use a configuration file to establish the startup, the file is generally: the database IP, database port number, database login role, login password, database filtering    ... -u update a database    -D Specifies the use of   a database ...

Ten: Run Odoo

Click Pycharm's Run button to start Odoo.

In the browser input: localhost:8069, enter Odoo.

The first time you log in, you need to create a database.

Quickly build ODOO10 development environment under Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.