HACKING.md 689 Bytes
Newer Older
alexandre's avatar
alexandre committed
1
```bash
2 3 4 5
sudo apt-get install postgresql
sudo apt-get install postgresql-server-dev-9.4
sudo apt update
sudo apt install python3-dev
6 7
git clone git@gitlab.constantvzw.org:osp/work.w.git
cd work.w
alexandre's avatar
alexandre committed
8
virtualenv --python=python3 venv
9
source venv/bin/activate
alexandre's avatar
alexandre committed
10
pip install -r requirements/base.txt
11 12 13 14 15 16
cp organon/local_settings.example.py organon/local_settings.py
createuser --interactive
createdb [name]
    Then edit local_settings.py with 
        'NAME': '[name]',
        'USER': '[name]',
alexandre's avatar
alexandre committed
17 18
python manage.py migrate
python manage.py createsuperuser
nicolas's avatar
nicolas committed
19
python manage.py runserver
alexandre's avatar
alexandre committed
20 21
```

nicolas's avatar
nicolas committed
22
organon1969
23 24

see https://www.digitalocean.com/community/tutorials/how-to-install-and-use-postgresql-on-ubuntu-16-04