1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2024-12-24 17:02:25 +00:00
Go to file
2019-08-16 15:05:10 +02:00
logs Adapt media to ISBN 2019-08-11 09:22:22 +02:00
med Remove useless config 2019-08-16 13:46:12 +02:00
media Autoselect user in admin 2019-08-16 14:34:16 +02:00
sporz Sporz permissions 2019-08-16 15:05:10 +02:00
theme Translate 404 2019-08-15 18:26:46 +02:00
users Add ISBN data downloader 2019-08-11 10:40:39 +02:00
.coveragerc New admin theme 2019-08-02 15:33:38 +02:00
.gitignore Add is_staff and is_active to User 2019-08-02 18:37:54 +02:00
.gitlab-ci.yml Test also with Python3.5 2019-08-02 14:36:06 +02:00
.pylintrc Update project base 2019-08-02 13:24:49 +02:00
COPYING Update project base 2019-08-02 13:24:49 +02:00
manage.py Add Debian Stretch requirements 2019-08-02 13:32:09 +02:00
README.md Sporz permissions 2019-08-16 15:05:10 +02:00
requirements.txt Adapt media to ISBN 2019-08-11 09:22:22 +02:00
start_uwsgi.sh Add uwsgi start script 2019-08-02 13:17:22 +02:00
tool_barcode_getblue.py Android barcode scanner 2019-08-11 12:05:05 +02:00
tox.ini CI passing! 2019-08-09 23:22:20 +02:00

Site de la Mediatek

License: GPL v3 pipeline status coverage report

Le projet Med permet la gestion de la base de donnée de la médiathèque de l'ENS Paris-Saclay. Elle permet de gérer les medias, bd, jeux, emprunts, ainsi que les adhérents de la med.

Licence

Ce projet est sous la licence GNU public license v3.0.

Développement

Après avoir installé un environnement Django,

./manage.py migrate
./manage.py collectstatic
./manage.py runserver

Configuration d'une base MySQL

Sur le serveur mysql ou postgresl, il est nécessaire de créer une base de donnée med, ainsi qu'un user med et un mot de passe associé.

Voici les étapes à éxecuter pour mysql :

CREATE DATABASE club-med;
CREATE USER 'club-med'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON club-med.* TO 'club-med'@'localhost';
FLUSH PRIVILEGES;

Exemple de groupes de droits

bureau
    media | Can view borrowed item
    media | Can add borrowed item
    media | Can change borrowed item
    media | Can delete borrowed item
    users | Can view adhesion
    users | Can add adhesion
    users | Can change adhesion
    users | Can delete adhesion
    users | Can view clef
    users | Can add clef
    users | Can change clef
    users | Can delete clef
    users | Can view user
    users | Can add user
    users | Can change user
    sporz | Can view gamesave
    + permissions keyholder

keyholder
    media | Can view auteur
    media | Can add auteur
    media | Can change auteur
    media | Can delete auteur
    media | Can view media
    media | Can add media
    media | Can change media
    media | Can delete media
    media | Can view jeu
    media | Can add jeu
    media | Can change jeu
    media | Can delete jeu
    media | Can view emprunt
    media | Can add emprunt
    media | Can change emprunt
    media | Can delete emprunt
    users | Can view user
    users | Can view clef

users (default group for everyone)
    media | Can view auteur
    media | Can view media
    media | Can view jeu
    sporz | Can add gamesave
    sporz | Can change gamesave
    sporz | Can delete gamesave
    sporz | Can view player
    sporz | Can add player
    sporz | Can change player
    sporz | Can delete player