python - How to get the current database in the django migration? -


i writing custom migration in django, , make work the

django-admin migrate --database databse_name 

command. since creating custom cursor, default won't work me. there reasonable way make work?

you can access using db.db_alias. hope helps!


Comments