Skip to main content

How to Remove course from Open-edX

Go to vagrant  =>

1. In the edx-platform directory:
 - cd /edx/app/edxapp/edx-platform

2. Run the following Django management command:
  - sudo -u www-data /edx/bin/python.edxapp /edx/bin/manage.edxapp lms dump_course_ids --settings aws
  - sudo -u www-data /edx/bin/python.edxapp /edx/bin/manage.edxapp lms dump_course_ids --settings=devstack

3. Find the course ID which you'd like to delete in the resulting list of course IDs.

4. Copy the course ID into the following command and run it:
 - sudo -u www-data /edx/bin/python.edxapp /edx/bin/manage.edxapp cms delete_course <COURSE_ID> --settings aws
 -  sudo -u www-data /edx/bin/python.edxapp /edx/bin/manage.edxapp cms delete_course <COURSE_ID> --settings=devstack

 - You'll be asked to verify the deletion.

To verify the deletion, run the command from step 2 above and ensure that the course ID is not in the list.


Help reference :

Popular posts from this blog

How to read or extract text data from passport using python utility.

Hi ,  Lets get start with some utility which can be really helpful in extracting the text data from passport documents which can be images, pdf.  So instead of jumping to code directly lets understand the MRZ, & how it works basically. MRZ Parser :                 A machine-readable passport (MRP) is a machine-readable travel document (MRTD) with the data on the identity page encoded in optical character recognition format Most travel passports worldwide are MRPs.  It can have 2 lines or 3 lines of machine-readable data. This method allows to process MRZ written in accordance with ICAO Document 9303 (endorsed by the International Organization for Standardization and the International Electrotechnical Commission as ISO/IEC 7501-1)). Some applications will need to be able to scan such data of someway, so one of the easiest methods is to recognize it from an image file. I 'll show you how to retrieve the MRZ infor...

Mocking External APIs in Python

First steps Begin by setting up a new development environment to hold your project code. Create a new virtual environment and then install the following libraries: $ pip install nose requests Here is a quick rundown of each library you are installing, in case you have never encountered them: The  mock  library is used for testing Python code by replacing parts of your system with mock objects.  NOTE: The  mock  library is part of  unittest  if you are using Python 3.3 or greater. If you are using an older version, please install the  backport mock  library. The  nose  library extends the built-in Python  unittest  module to make testing easier. You can use  unittest  or other third-party libraries such as  pytest  to achieve the same results, but I prefer  nose ‘s assertion methods. The  requests  library greatly simplifies HTTP calls in Python. For this tutorial, you wil...

docker-compose-versions differences

 I have captured some of my learnings on Docker compose files and how they differ between versions. Docker compose is a tool used for defining and running multi-container Docker applications. I have used the famous  multi-container voting  application to illustrate the differences with compose versions. Following are some questions that I have to tried to answer in this blog: What is the difference between Compose versions 1, 2 and 3? What is the difference between compose, stack and dab formats? What are different ways to run compose files with different compose versions? How does “docker stack deploy” really work? Compose versions: Following table captures the main differences between Compose versions: Feature Compose v1 Compose v2 Compose v3 Docker engine version 1.9.1+ 1.10.0+ 1.13.0+ Compose version Compose up to 1.6.x Compose 1.6.0+ Compose 1.10.0+ Connect containers Bridge network, need links Overlay supported, networks can be used to conn...