From 6190a60417c7e1ba5bff98637aa2f60952e8993d Mon Sep 17 00:00:00 2001 From: maxime Date: Mon, 27 May 2019 08:24:40 +0200 Subject: [PATCH] change rst block --- README.rst | 57 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 33 insertions(+), 24 deletions(-) diff --git a/README.rst b/README.rst index 8e31d2c..20ca004 100644 --- a/README.rst +++ b/README.rst @@ -1,27 +1,36 @@ -# DB installation -pacman -S postgresql -su - postgres -c "initdb --local en_US.UTF-8 -D '/var/lib/postgres/data'" -systemctl restart posgresql -su - postgres -c "createuser gpp" -su - postgres -c "createdb -O gpp gpp" +:: + # DB installation + pacman -S postgresql + su - postgres -c "initdb --local en_US.UTF-8 -D '/var/lib/postgres/data'" + systemctl restart posgresql + su - postgres -c "createuser gpp" + su - postgres -c "createdb -O gpp gpp" -# Python installation -pacman -S python3 -virtualenv -p /usr/bin/python3.7 ~/.pyvenv/gpp -source ~/.pyvenv/gpp/bin/activate + # Python installation + pacman -S python3 + virtualenv -p /usr/bin/python3.7 ~/.pyvenv/gpp + source ~/.pyvenv/gpp/bin/activate -# Project initialization (if not already created) -pip install Django psycopg2 -django-admin startproject gpp -django-admin startapp harbour -# edit gpp/settings.py according to your database preferences -./manage.py migrate -cd gpp -git init + # Project initialization (if not already created) + pip install Django psycopg2 + django-admin startproject gestion_port_plaisance + cd gestion_port_plaisance + ./migrate.py startapp port + git init + pip freeze > requirements.txt + cat << EOF >> .gitignore + *.pyc + __pycache__ + *.swo + *.swp + EOF + # go to (1) -# If already created -git clone https://git.yannweb.net/maxime-alves/gestion_port_plaisance.git -cd ./gestion_port_plaisance -pip install -r requirements.txt -# edit gpp/settings.py according to your database preferences -./manage.py migrate + # If already created + git clone https://git.yannweb.net/maxime-alves/gestion_port_plaisance.git + cd ./gestion_port_plaisance + pip install -r requirements.txt + + # (1) + # edit gpp/settings.py according to your database preferences + ./manage.py migrate