1👍
✅
Well you can call commands with
from django.core import management
management.call_command('inspectdb')
see here for more info.
But I doubt it would work for dynamically creating models the way you want. For one thing, most wsgi servers need to be rebooted for changes to appear.
Source:stackexchange.com