gpp/README.rst

37 lines
999 B
ReStructuredText
Raw Normal View History

2019-05-27 08:24:40 +02:00
::
# 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"
2019-05-27 08:04:29 +02:00
2019-05-27 08:24:40 +02:00
# Python installation
pacman -S python3
virtualenv -p /usr/bin/python3.7 ~/.pyvenv/gpp
source ~/.pyvenv/gpp/bin/activate
2019-05-27 08:04:29 +02:00
2019-05-27 08:24:40 +02:00
# 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)
2019-05-27 08:04:29 +02:00
2019-05-27 08:24:40 +02:00
# 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