Skip to content

Commit

Permalink
Merge pull request #3 from edlywmf/maneesha/convert-django-app-to-plugin
Browse files Browse the repository at this point in the history
convert django app to extensible edx plugin
  • Loading branch information
maneeshatejani1 authored Aug 17, 2021
2 parents 9056bcf + 07c0d07 commit adcf3fd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 21 deletions.
1 change: 0 additions & 1 deletion lms/envs/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -3091,7 +3091,6 @@ def _make_locale_paths(settings): # pylint: disable=missing-function-docstring
# permissions needs to be listed as an LMS app or the script will fail.
'user_tasks',

'openedx.features.wikimedia_features.admin_dashboard',

]

Expand Down
5 changes: 0 additions & 5 deletions lms/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,11 +677,6 @@
include('openedx.features.learner_profile.urls'),
),

url(
r'^wikimedia_features/',
include(('openedx.features.wikimedia_features.urls',
'openedx.features.wikimedia_features'), namespace='wikimedia_features')
),
]

if settings.FEATURES.get('ENABLE_TEAMS'):
Expand Down
12 changes: 12 additions & 0 deletions openedx/features/wikimedia_features/admin_dashboard/apps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
from django.apps import AppConfig
from edx_django_utils.plugins import PluginURLs
from openedx.core.djangoapps.plugins.constants import ProjectType


class AdminDashboardConfig(AppConfig):
name = 'openedx.features.wikimedia_features.admin_dashboard'

plugin_app = {
PluginURLs.CONFIG: {
ProjectType.LMS: {
PluginURLs.NAMESPACE: 'admin_dashboard',
PluginURLs.REGEX: '^admin_dashboard/',
PluginURLs.RELATIVE_PATH: 'urls',
}
}
}
15 changes: 0 additions & 15 deletions openedx/features/wikimedia_features/urls.py

This file was deleted.

1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
"user_authn = openedx.core.djangoapps.user_authn.apps:UserAuthnConfig",
"program_enrollments = lms.djangoapps.program_enrollments.apps:ProgramEnrollmentsConfig",
"courseware_api = openedx.core.djangoapps.courseware_api.apps:CoursewareAPIConfig",
"admin_dashboard = openedx.features.wikimedia_features.admin_dashboard.apps:AdminDashboardConfig",
],
"cms.djangoapp": [
"announcements = openedx.features.announcements.apps:AnnouncementsConfig",
Expand Down

0 comments on commit adcf3fd

Please sign in to comment.