is there similar syntax to php's $$variable in python? what I am actually trying is to load a model based on a value.
for example, if the value is Song, I would like to import Song module. I know I can use if statements or lambada, but something similar to php's $$variable will be much convenient.
what I am after is something similar to this.
from mypackage.models import [*variable]
then in the views
def xyz(request):
xz = [*variable].objects.all()
*variable is a value that is defined in a settings or can come from comandline. it can be any model in the project.