You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not all Django built in management commands support the --database option, including any custom command.
It would be useful if the --database option were to be made available by leveraging the context manager / decorator already implemented here. One approach could be: this library could provide a subclass of BaseCommand that overrides the handle method.
The text was updated successfully, but these errors were encountered:
thaysom22
changed the title
BaseCommand class that accepts --database option for custom commands.
Management command accepts --database option for custom commands
Oct 18, 2023
Not all Django built in management commands support the
--database
option, including any custom command.It would be useful if the
--database
option were to be made available by leveraging the context manager / decorator already implemented here. One approach could be: this library could provide a subclass ofBaseCommand
that overrides thehandle
method.The text was updated successfully, but these errors were encountered: