question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Management command fails with latest version

See original GitHub issue

Tried to run the management command by using tenant_command, but I am getting following error. manage.py tenant_command: error: unrecognized arguments: --username user

It was working before upgrading. How to solve it?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

3reactions
ivancdechiaracommented, May 9, 2020

In the version 1.10.0, the command changed to:

#python manage.py tenant_command createsuperuser

2reactions
jeroenbrouwercommented, Dec 11, 2019

@goodtune can you take a look at this issue? It basically broke some basic features of this package…

One way to easily add the arguments back would be to do something like the following in InteractiveTenantOption:

def add_arguments(self, parser):
        parser.add_argument("command")
        parser.add_argument(
            "-s", "--schema", dest="schema_name", help="specify tenant schema"
        )
        parser.add_argument("command_args", nargs=argparse.REMAINDER)

and in tenant_command:

def handle(self, command, command_args, schema_name, *args, **options):
        tenant = self.get_tenant_from_options_or_interactive(
            schema_name=schema_name, **options
        )
        connection.set_tenant(tenant)
        call_command(command, *command_args, *args, **options)
Read more comments on GitHub >

github_iconTop Results From Across the Web

set" command fails with "No releases match" error.
[root@localhost ~]# subscription-manager release --set=x.y No releases match 'x.y'. Consult 'release --list' for a full listing. Environment.
Read more >
django-command-error - PyPI
Django management command errors handling. ... pip install django-command-error. Copy PIP instructions. Latest version.
Read more >
DISM command fails with error code 87 - Windows Client
You have an earlier version of DISM (that is, a version from Windows 8.1 or from an earlier version of Windows). You try...
Read more >
Django custom management command error when executed ...
Check that crontab is running the same version of python. My crontab entries actually look like the following:
Read more >
Command Workstation 6.4 fails to install on Windows 10
However, when I allowed Fiery Software Manager to attempt to update CWS to the latest version, the 6.4 install once again failed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found