Add a deprecation warning for when courseware is imported incorrectly

This commit is contained in:
Calen Pennington
2018-10-10 12:00:46 -04:00
parent 72f556c1a9
commit c57170dc48

View File

@@ -0,0 +1,5 @@
#pylint: disable=missing-docstring
import warnings
if __name__ == 'courseware':
warnings.warn("Importing 'lms.djangoapps.courseware' as 'courseware' is no longer supported", DeprecationWarning)