Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Management command accepts --database option for custom commands #17

Open
thaysom22 opened this issue Oct 18, 2023 · 0 comments
Open

Management command accepts --database option for custom commands #17

thaysom22 opened this issue Oct 18, 2023 · 0 comments

Comments

@thaysom22
Copy link

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.

@thaysom22 thaysom22 changed the title BaseCommand class that accepts --database option for custom commands. Management command accepts --database option for custom commands Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant