Skip to content

Commit

Permalink
feat: added an app for sending progress emails to users
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Salman authored and Ali Salman committed Feb 19, 2024
1 parent 36c31df commit cec09bf
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 0 deletions.
Empty file.
3 changes: 3 additions & 0 deletions openedx/features/sdaia_features/course_progress/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"""
Admin Models
"""
17 changes: 17 additions & 0 deletions openedx/features/sdaia_features/course_progress/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""
Progress Updates App Config
"""
from django.apps import AppConfig
from edx_django_utils.plugins import PluginURLs, PluginSettings
from openedx.core.djangoapps.plugins.constants import ProjectType, SettingsType

class CourseProgressConfig(AppConfig):
name = 'openedx.features.sdaia_features.course_progress'

plugin_app = {
PluginSettings.CONFIG: {
ProjectType.LMS: {
SettingsType.COMMON: {PluginSettings.RELATIVE_PATH: 'settings.common'},
}
}
}
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""
Django admin command to send message email emails.
"""
from logging import getLogger
from django.core.management.base import BaseCommand

log = getLogger(__name__)

class Command(BaseCommand):
"""
This command will update users about their course progress.
$ ./manage.py lms send_progress_emails
"""
help = 'Command to update users about their course progress'

def handle(self, *args, **options):
print("Hello")
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

"""Settings"""


def plugin_settings(settings):
"""
Required Common settings
"""
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
"program_enrollments = lms.djangoapps.program_enrollments.apps:ProgramEnrollmentsConfig",
"courseware_api = openedx.core.djangoapps.courseware_api.apps:CoursewareAPIConfig",
"course_apps = openedx.core.djangoapps.course_apps.apps:CourseAppsConfig",
"course_progress = openedx.features.sdaia_features.course_progress.apps:CourseProgressConfig",
],
"cms.djangoapp": [
"announcements = openedx.features.announcements.apps:AnnouncementsConfig",
Expand Down

0 comments on commit cec09bf

Please sign in to comment.