sys.modules[__name__]

if installed_apps is None and hasattr(sys.modules[__name__], 'apps'):
raise RuntimeError("You must supply an installed_apps argument.")

print(sys.modules[__name__])
<module 'django.apps.registry' from 'C:\\Users\\Administrator\\Envs\\gz_monitor\\lib\\site-packages\\django\\apps\\registry.py'>
posted @ 2020-06-15 14:32  Fmaj-7  阅读(411)  评论(0编辑  收藏  举报