Django Management Shell

Hello,

I am using Microsoft Visual Studio 2017 Enterprise. Is there anyone here who can advise how to migrate to a specific MSSQL database using Django Management Shell? When I migrate using the in built visual studio Migrate commands this works fine for the default database, however, as I have database routers, I need to specifiy a specific database to migrate to, and when I type the following into Django Management Shell:

Python manage.py migrate db==Diabetes

This returns a syntax error.

Regards,

Neil

good question.but i don’t know. i only come here to see see.

1 Like

python manage.py migrate --help says:

optional arguments:
...
 --database DATABASE  Nominates a database to synchronize. Defaults to the
                      "default" database.

Is this what you’re looking for?