Package: section-to-course
section-to-coursePurposeAllows course authors to factor sections from Open edX courses into their own new course.InstallationThis application is not yet available on PyPI, so you will need to install it from source. You can install it from source on the currentmainbranch by adding:git+https://github.com/open-craft/section-to-course.git…to therequirements/private.txtfile of your Open edX installation, and then runpip install-rrequirements/private.txt. If you’re developing locally without the platform, create a virtualenv using the latest Python 3.8 release, and then runpip install-e.from the root of this repository.DevelopmentIf developing on this application, you will need to install it as an editable package. To do so, follow these steps:Set up the Open edXdevstackusing thenutmeg.masterversion as explained inthis guide.Then, in theedx-platformrepository root, run:gitremoteaddopen-craftgit@github.com:open-craft/edx-platform.gitgitfetchopen-craftgitcheckoutopen-craft/opencraft-release/nutmeg.2Then, in thesrcdirectory of your devstack, run:gitclonegit@github.com:open-craft/section-to-course.gitThen, in yourdevstackdirectory, run:makedev.shell.studiocd/edx/src/section-to-coursepipinstall-e.Configuration (optional)New courses are self-paced. If you want to set relative deadlines in them, follow the next steps:Add the followingWaffle Flags(withEveryone: Yes) in Django admin:studio.custom_relative_datescourse_experience.relative_datescourse_experience.relative_dates_disable_resetGo toDjango admin -> Course_Date_Signals -> Self paced relative datesconfigs and add a config withEnabled: Yes.UsageOnce installed, the plugin should automatically register itself within Django. Be sure to run database migrations.The admin views are in the Django admin, under the “Section to Course” section. From there, you can create a new section to course link, which will create a new course with the same content as the section you selected. You can also view the list of existing section to course links, refresh them, and delete them.Note:The start date of a newly created course is in the future, so you will likely want to modify it in the “Schedule & Details” section in Studio.Relative due dates (optional)If you want to configure relative deadlines in your course, follow these steps:Mark a subsection in the newly created course as graded (otherwise, deadlines will be enforced but learners will not see these dates in the LMS).Enter the number of weeks in the subsection’s “Due in” field.You may also want to adjust the new course’s grading policy to change the weight of the section.Refreshing a CourseThere are two ways to refresh a course:Use the admin action from the changelist view. This will allow you to refresh several courses at once.Use the refresh button on the detail view for a single course, shown here:LicenseThe code in this repository is licensed under the AGPL 3.0.Please seeLICENSE.txtfor details.ContributingContributions are very welcome.This project is currently accepting all types of contributions, bug fixes,
security fixes, maintenance work, or new features.  However, please make sure
to have a discussion about your new feature idea with the maintainers prior to
beginning development to maximize the chances of your change being accepted.
You can start a conversation by creating a new issue on this repo summarizing
your idea.Reporting Security IssuesPlease do not report security issues in public. Please emailhelp@opencraft.com.Change LogUnreleased[0.4.3] - 2024-02-21FixedCompatibility ofcompatimports with post Quince releases.[0.4.2] - 2023-11-15ChangedUpgraded tox fromv3tov4and removedtox-battery.AddedCreated a new test for missing migrations and added it to the CI.FixedAdded a missing Django migration.Replaced the invalidROOT_URLCONFintest_settings.py.Made./manage.pyexecutable.[0.4.1] - 2023-11-07FixedCompatibility ofcompatimports with Palm.[0.4.0] - 2023-05-18ChangedRemoved course autocomplete for performance reasons. Source courses must now be specified by course key pasted into the source course ID field.AddedGithub integration-tests action.[0.3.0] - 2023-05-12ChangedNew section-based courses are self-paced.[0.2.0] - 2023-05-10AddedAdmin views for creating new section-based courses.First release on PyPI.[0.1.0] - 2023-04-03AddedInitial section-derived course creation code.