Hello,
I need some help with this repository:
https://github.com/openedx/django-config-models
I use Ubuntu 24.04 and have a running Tutor in my virtual environment (direnv) running.
As far as I could see, django_config_models is not part of the standard edx platform here:
https://github.com/openedx/edx-platform
I’m right?
So it is also not part of a Tutor installation as far as I found in my research?
My goal is to be able to maintain the django-config-models repository.
My approach was until now: If djanog-config-models is not part of Tutor I propably have to activate it there?
Or I just have to copy this repository in edx-platform/lms/djangoapps
and edx-platform/cms/djangoapps before I do:
tutor mounts add ./edx-platform
see here (https://docs.tutor.edly.io/dev.html
My first approach was to install django-config-models in Tutor in this way:
tutor local run lms bash
pip install django-config-models
exit
tutor config save --set 'EDXAPP_INSTALLED_APPS=["config_models"]'
tutor local restart lms
tutor local run lms ./manage.py lms makemigrations
tutor local run lms ./manage.py lms migrate
here are 2 pictures of the output, please zoom in:
A lot of deprecated packing warnings appeared.
In Tutor in don’t found the right directories for configuring a test configuration model in a models.py in an App.
So probably this is the wrong way to go.
It is right to install django-config-models in Tutor or is it not needed before mounting edx Platform?
I started a second approach:
0. I use direnv and are in that directory:
- Make a fork of the edx-platform at Gihub
git clone my_edx_fork
- Make a fork of the django-config-models repo at Github
- change to path edx-platform
git clone my_django-config-models_fork
cd ..
- Im back in direnv main directory now
- tutor mounts add ./edx-platform
- tutor images build openedx-dev
tutor dev launch
tutor local start -d
- Check Status:
tutor local status
pip install -e edx-platform/django-config-models/
tutor local restart lms
tutor dev restart
LMS and CMS Websites are up, system is running. How can I check if django-config-models is loaded and working correctly?
I found that an entry should appear in the admin panel of LMS/CMS, but I found no.
Please give me an advise which steps I have to go.
Big thx in advance.
Marco