Files
edx-platform/lms/djangoapps/program_enrollments/apps.py
Feanil Patel 9cf2f9f298 Run 2to3 -f future . -w
This will remove imports from __future__ that are no longer needed.

https://docs.python.org/3.5/library/2to3.html#2to3fixer-future
2019-12-30 10:35:30 -05:00

34 lines
852 B
Python

# -*- coding: utf-8 -*-
"""
ProgramEnrollments Application Configuration
"""
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