diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5671b62..428a7b4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,13 +9,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.8', '3.12'] + python-version: ['3.8', '3.12'] steps: - uses: actions/checkout@v3 - name: Set up Python uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python-version }} + python-version: ${{ matrix.python-version }} - name: Upgrade pip run: python -m pip install --upgrade pip setuptools - name: Install dependencies diff --git a/README.rst b/README.rst index 304d609..1cdc24b 100644 --- a/README.rst +++ b/README.rst @@ -47,6 +47,7 @@ names by configuring ``DISCOVERY_INDEX_OVERRIDES``:: Re-indexing courses ~~~~~~~~~~~~~~~~~~~ +In case of tutor dev mode i.e. for development mode, `--partner_code=dev` will be used instead of `--partner_code=openedx` in below refresh_course_metadata command. :: tutor local run discovery ./manage.py refresh_course_metadata --partner_code=openedx @@ -65,17 +66,19 @@ Then run the below command, this command will cause errors every time as it trie tutor local run lms ./manage.py lms cache_programs -If you don't want the errors, then make use of an extra argument to the command .i.e. ``--domain``. This argument will be equal to ``local.edly.io`` if you are running tutor local and ``local.edly.io:8000`` if you are running tutor dev:: +If you don't want the errors, then make use of an extra argument to the command .i.e. ``--domain``. This argument will be equal to ``local.edly.io`` if you are running tutor local and ``local.edly.io:8000`` if you are running tutor dev. +:: + tutor local run lms ./manage.py lms cache_programs --domain="local.edly.io" or tutor dev run lms ./manage.py lms cache_programs --domain="local.edly.io:8000" This last step should be performed every time you create new or make changes to existing programs. -Show Programs Tab -~~~~~~~~~~~~~~~~~ +Programs Tab +~~~~~~~~~~~~ -In order to show programs tab in the LMS dashboard, users will need to manually create an entry in ``Programs api config`` model in LMS Admin Panel. Go to http://local.edly.io/admin/programs/programsapiconfig/. Add ``Marketing path`` equal to ``/programs`` and enable it. Then Programs tab will be shown on the LMS where users can view their registered programs. It will show like as in below picture. +In order to make `Programs` tab work in the LMS dashboard, users will need to manually create an entry in ``Programs api config`` model in LMS Admin Panel. Go to http://local.edly.io/admin/programs/programsapiconfig/. Add ``Marketing path`` equal to ``/programs`` and enable it. Then Programs tab will be shown on the LMS where users can view their registered programs. It will show like as in below picture. .. image:: https://github.com/overhangio/tutor-discovery/assets/122095701/e0224011-adc0-41e4-a104-af4cb0c24b82 :alt: Programs Tab on LMS dashboard