NAU Open edX extensions is a django app plugin to make easier change or extend edx-platform
Documentation about the installation.
This package requires the same Python version of the edx-platform. For redwood Python 3.11.
Create a python virtual environment.
python -m venv venv
And activate it. Further steps should be run inside this virtual environment.
make requirements
To run the python tests execute, inside the previous create virtual environment.
make test
To run the linters to check code quality, inside the previous create virtual environment.
make lint
To extract, update translations files and to compile, simply run.
make translations
To translate, change the conf/locale//LC_MESSAGES/django.po files.
Then to compile, just execute the same Makefile target.
make translations
To make VSCode detect the edx-platform code, add this to your project settings.
{
"python.autoComplete.extraPaths": ["${workspaceFolder}/../edx-platform"],
"python.analysis.extraPaths": ["${workspaceFolder}/../edx-platform"],
}