change rst block
This commit is contained in:
parent
cd05ff4180
commit
6190a60417
57
README.rst
57
README.rst
|
@ -1,27 +1,36 @@
|
||||||
# DB installation
|
::
|
||||||
pacman -S postgresql
|
# DB installation
|
||||||
su - postgres -c "initdb --local en_US.UTF-8 -D '/var/lib/postgres/data'"
|
pacman -S postgresql
|
||||||
systemctl restart posgresql
|
su - postgres -c "initdb --local en_US.UTF-8 -D '/var/lib/postgres/data'"
|
||||||
su - postgres -c "createuser gpp"
|
systemctl restart posgresql
|
||||||
su - postgres -c "createdb -O gpp gpp"
|
su - postgres -c "createuser gpp"
|
||||||
|
su - postgres -c "createdb -O gpp gpp"
|
||||||
|
|
||||||
# Python installation
|
# Python installation
|
||||||
pacman -S python3
|
pacman -S python3
|
||||||
virtualenv -p /usr/bin/python3.7 ~/.pyvenv/gpp
|
virtualenv -p /usr/bin/python3.7 ~/.pyvenv/gpp
|
||||||
source ~/.pyvenv/gpp/bin/activate
|
source ~/.pyvenv/gpp/bin/activate
|
||||||
|
|
||||||
# Project initialization (if not already created)
|
# Project initialization (if not already created)
|
||||||
pip install Django psycopg2
|
pip install Django psycopg2
|
||||||
django-admin startproject gpp
|
django-admin startproject gestion_port_plaisance
|
||||||
django-admin startapp harbour
|
cd gestion_port_plaisance
|
||||||
# edit gpp/settings.py according to your database preferences
|
./migrate.py startapp port
|
||||||
./manage.py migrate
|
git init
|
||||||
cd gpp
|
pip freeze > requirements.txt
|
||||||
git init
|
cat << EOF >> .gitignore
|
||||||
|
*.pyc
|
||||||
|
__pycache__
|
||||||
|
*.swo
|
||||||
|
*.swp
|
||||||
|
EOF
|
||||||
|
# go to (1)
|
||||||
|
|
||||||
# If already created
|
# If already created
|
||||||
git clone https://git.yannweb.net/maxime-alves/gestion_port_plaisance.git
|
git clone https://git.yannweb.net/maxime-alves/gestion_port_plaisance.git
|
||||||
cd ./gestion_port_plaisance
|
cd ./gestion_port_plaisance
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
# edit gpp/settings.py according to your database preferences
|
|
||||||
./manage.py migrate
|
# (1)
|
||||||
|
# edit gpp/settings.py according to your database preferences
|
||||||
|
./manage.py migrate
|
||||||
|
|
Loading…
Reference in New Issue