...
Info | ||||
---|---|---|---|---|
| ||||
H5P n'est plus supporté dans Pod. à titre d'archive, vous pouvez toujours consulter l'ancienne doc ci-dessous : |
Désinstaller H5P
Info | ||
---|---|---|
| ||
Si vous souhaitez désinstaller proprement H5P, il vous faudra certainement modifier le fichier "h5pp/models.py" pour lui ajouter des "app_label = '...'" dans chaque class Meta. Une version corrigée se trouve ici : https://github.com/Badatos/H5PP/tree/patch-1 |
Commencez par retirer le bloc suivant de votre fichier custom/settings_local.py
##
# H5P relative parameters
#
[...]
BASE_URL = ...
Retirez-y également 'interactive' de la liste des THIRD_PARTY_APPS.
Une fois ceci fait, vous pouvez continuer à désinstaller les fichiers h5p restants :
Bloc de code | ||
---|---|---|
| ||
pip3 uninstall h5pp
rm -R /data/www/%userpod%/django_projects/H5PP
rm -R /data/www/%userpod%/django_projects/podv2/pod/static/h5p
rm -R /data/www/%userpod%/django_projects/podv2/pod/media/h5pp |
Installer H5P (deprecated)
Pour installer H5PP avec Podv2, la procédure est un peu particulière.
...
Pour ma part, j'ai résolu ce problème en positionnant manuellement les fichiers statiques au bon endroit (cela n'est sûrement pas la meilleure méthode, mais cela fonctionne), à savoir :
Bloc de code | ||||
---|---|---|---|---|
| ||||
# Les fichiers statiques sont dans l'environnement virtuel. Il a fallu copier le répertoire h5p : cp /data/www/%userpod%/.virtualenvs/django_pod/lib/python3.6/site-packages/h5pp/static/h5p /data/www/%userpod%/django_projects/podv2/pod/static/h5p -R |
À penser
Lors des maj, il faut vérifier les fichiers statics
Bloc de code | ||||
---|---|---|---|---|
| ||||
# Les fichiers statiques sont dans l'environnement virtuel. Il a fallu copier le répertoire h5p : cp /data/www/%userpod%/.virtualenvs/django_pod/lib/python3.6/site-packages/h5pp/static/h5p /data/www/%userpod%/django_projects/podv2/pod/static/h5p -R |