Recommended practice for using import_module in django >= 1.8 -
in 1 of django tests, use django.utils.importlib.import_module how used here.
on upgrading django 1.8, deprecation warning
test_views.py:20: removedindjango19warning: django.utils.importlib removed in django 1.9. django.utils.importlib import import_module is recommended practice use import_module importlib in standard library (which seems work fine)? or recommended practice avoid using import_module entirely?
based on documentation (found looking @ django deprecation timeline 1.9 , following link), first suggestion seems correct: developers should use standard importlib part of standard library.
Comments
Post a Comment