omar
(Omar Al-Ithawi - Senior Software Engineer @ ZeitLabs.com)
1
This code snippet lists all installed XBlocks in your installation:
You need to get into the python shell first:
- On devstack it’s
make lms-shell
then ./manage.py lms shell
- On native production installation it’s
ssh your-machine-ip
then /edx/bin/edxapp-shell-lms
- On Tutor it’s: … check @chintan’s reply below
Then paste the following code:
import pkg_resources
for ep in pkg_resources.iter_entry_points(group='xblock.v1'):
print(ep.name)
You’ll get a list like this:
survey
poll
drag-and-drop-v2
staffgradedxblock
recommender
openassessment
lti_consumer
edx_sga
...
5 Likes
braden
(Braden MacDonald (OpenCraft) - opencraft.com/help)
2
And if you want to know what version of each is installed, check out the discussion at What's the best way to track/show an XBlock's version? - #5 by fghaas / this PR
1 Like
chintan
(Chintan Joshi)
3
On tutor its
tutor local run cms ./manage.py lms shell
or for development version
tutor dev run cms ./manage.py lms shell
or
you can run
docker exec -it your_container_name_here /bin/bash
and then proceed with normal ./manage.py stuff that we usually do
1 Like