I'm using two database instances in Django, one is in Postgis and the other is in Postgres itself. Postgis is a geospatial database that has some model fields and features that the PostgreSQL database which is its extender does not have.
When I run the ./manage.py migrate
, to avoid tracebacks, I want the migrations related to Postgis migrate to Postgis and the ones related to Postgres migrated to Postgres which is the default database.
I could do this by specifying --database="postgis"
while running the migration command but it would be best option to avoid doing that.