Files
edx-platform/lms/djangoapps/program_enrollments/apps.py
Kyle McCormick ea5652010c Create Python API for program_enrollments: Part I (#21511)
This is the first in a series of commits to create
a Python API for the LMS program_enrollments app.
We do some general refactoring, renaming, and clean-up
in order to move toward the creation of that API.

EDUCATOR-4321
2019-09-04 14:06:00 -04:00

34 lines
908 B
Python

# -*- coding: utf-8 -*-
"""
ProgramEnrollments Application Configuration
"""
from __future__ import absolute_import, unicode_literals
from django.apps import AppConfig
from openedx.core.djangoapps.plugins.constants import PluginURLs, ProjectType
class ProgramEnrollmentsConfig(AppConfig):
"""
Application configuration for ProgramEnrollment
"""
name = 'lms.djangoapps.program_enrollments'
plugin_app = {
PluginURLs.CONFIG: {
ProjectType.LMS: {
PluginURLs.NAMESPACE: 'programs_api',
PluginURLs.REGEX: 'api/program_enrollments/',
PluginURLs.RELATIVE_PATH: 'rest_api.urls',
}
},
}
def ready(self):
"""
Connect handlers to signals.
"""
from . import signals # pylint: disable=unused-variable
from . import tasks # pylint: disable=unused-variable