forked from openedx/edx-platform
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: added an app for sending progress emails to users
- Loading branch information
Ali Salman
authored and
Ali Salman
committed
Feb 19, 2024
1 parent
36c31df
commit cec09bf
Showing
8 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
""" | ||
Admin Models | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
17 changes: 17 additions & 0 deletions
17
openedx/features/sdaia_features/course_progress/management/commands/send_progress_emails.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
8 changes: 8 additions & 0 deletions
8
openedx/features/sdaia_features/course_progress/settings/common.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
"""Settings""" | ||
|
||
|
||
def plugin_settings(settings): | ||
""" | ||
Required Common settings | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters