django.views.generic.DetailView is a valid path because Django imports the view from django.views.generic.edit into django.views.generic.__init__. However running this on your typical local view code (eg projects.views.MyListView) will fail because it's not a valid import.
pydoc handles this situation so we need to dig into how it's done there. I suspect something in/around the resolve or document functions might be doing the magic.
django.views.generic.DetailView
is a valid path because Django imports the view fromdjango.views.generic.edit
intodjango.views.generic.__init__
. However running this on your typical local view code (egprojects.views.MyListView
) will fail because it's not a valid import.pydoc
handles this situation so we need to dig into how it's done there. I suspect something in/around theresolve
ordocument
functions might be doing the magic.