django-tenant-schemas icon indicating copy to clipboard operation
django-tenant-schemas copied to clipboard

After upgrading django 2.0 to 3.0, shell tenant command stop working

Open Mario-Cano opened this issue 4 years ago • 2 comments

I moved from django 2.0 to 3.0 and shell tenant command stop working.

I'm doing something like this

./manage.py tenant_command shell --schema=customer1,

I'm getting this error Traceback (most recent call last): File "manage.py", line 15, in execute_from_command_line(sys.argv) File "/home/mario/anaconda3/envs/myapp/lib/python3.6/site-packages/django/core/management/init.py", line 401, in execute_from_command_line utility.execute() File "/home/user/anaconda3/envs/myapp/lib/python3.6/site-packages/django/core/management/init.py", line 395, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/user/anaconda3/envs/myapp/lib/python3.6/site-packages/django/core/management/base.py", line 328, in run_from_argv self.execute(*args, **cmd_options) File "/home/user/anaconda3/envs/myapp/lib/python3.6/site-packages/django/core/management/base.py", line 369, in execute output = self.handle(*args, **options) File "/home/user/anaconda3/envs/myapp/lib/python3.6/site-packages/tenant_schemas/management/commands/tenant_command.py", line 15, in handle call_command(command, *args, **options) File "/home/user/anaconda3/envs/myapp/lib/python3.6/site-packages/django/core/management/init.py", line 160, in call_command ', '.join(sorted(valid_options)), TypeError: Unknown option(s) for shell command: skip_checks. Valid options are: command, force_color, help, interface, no_color, no_startup, pythonpath, settings, stderr, stdout, traceback, verbosity, version.

Do you have any suggestion about how to fix it?

Mario-Cano avatar Jun 04 '20 17:06 Mario-Cano

I have this exact same issue. It was a very cool feature to start the django console with the single line command. Hope you can fix it!

estebanangelm avatar Jun 04 '20 17:06 estebanangelm

Check issue #634

sshahbaj avatar Jun 18 '20 13:06 sshahbaj