1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-07-09 08:40:19 +02:00

propose fix for #134 (partially tested)

This commit is contained in:
quark
2025-07-09 00:15:33 +02:00
parent 883589e08c
commit 432f50e49a

View File

@ -11,6 +11,10 @@ else
sed -i -e "s/REPLACEME/La Note Kfet \\\\ud83c\\\\udf7b/g" /var/www/note_kfet/note_kfet/fixtures/cas.json
fi
# fix lag issues with django-oauth-toolkit (cf https://gitlab.crans.org/bde/nk20/issues/134 )
sed -i -e "s/all_scopes =/# all_scopes =/g" /var/www/note_kfet/env/lib/python3.11/site-packages/oauth2_provider/views/base.py
sed -i -e 's/kwargs\["scopes_descriptions"\] =/# kwargs\["scopes_descriptions"\] =/g' /var/www/note_kfet/env/lib/python3.11/site-packages/oauth2_provider/views/base.py
# Set up Django project
python3 manage.py collectstatic --noinput
python3 manage.py compilemessages