Skip to content

Per database management command execution #26

@LukeyJohnson

Description

@LukeyJohnson

I have a working installation of django-db-multitenant, its perfect for my use case thanks.

However, I cannot get the management commands to work, such as:
TENANT_DATABASE_NAME=example.com ./manage.py migrate

How do I call such a command from a venv in Windows 10 Python installation?

Also, do you have a solution for looping the migration commands over multiple databases in MySQL (like database names app_bqt, app_cre, app_trb etc) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions