Go to file
maxime d600618522 new_stay-1 initialized 2019-06-24 18:10:45 +02:00
doc added new_stay route and form 0 for boat search 2019-06-23 14:42:06 +02:00
gpp added new_stay route and form 0 for boat search 2019-06-23 14:42:06 +02:00
port new_stay-1 initialized 2019-06-24 18:10:45 +02:00
route_template enhance script, rm .tmp 2019-06-21 12:09:58 +02:00
route_template.tmp added new_stay route and form 0 for boat search 2019-06-23 14:42:06 +02:00
static added new_stay route and form 0 for boat search 2019-06-23 14:42:06 +02:00
.gitignore updates des forms, models, ajout de dépendances 2019-06-05 20:08:12 +02:00
README.rst change rst block 2019-05-27 08:26:05 +02:00
gen_route.sh add person form, possibility to set an "employee" relation 2019-06-21 14:02:07 +02:00
manage.py ajout des models et des url 2019-05-27 08:04:29 +02:00
requirements.txt update requirements.txt 2019-06-08 14:19:07 +02:00

README.rst

::

    # 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

    # 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

    # (1)
    # edit gpp/settings.py according to your database preferences
    ./manage.py migrate