Code of Conduct
Feature Description
User confirmation prompt for desctructive commands migrate and createcachetable, which can be bypassed using -no--input flag
Problem
is a subset of
python manage.py migrate --plan
A preview command is walking into destructive territory which has no safety rails, accidentaly execution can lead to unnecessarily painful experience. Not to mention explicit consent/cofirmation is a UX for destructive commands in place which some of the management commands already follow.
Request or proposal
proposal
Additional Details
This proposal is evolved from initial discussion, here's more information #163
Note: flush/collectstatic already follow proposed pattern
Implementation Suggestions
User executes:
Prompted with: "This command can modify database. Are you sure you want to proceed ? [Y/N]
User executes:
python manage.py migrate -no--input
Migration is applied
Similar pattern will be followed for createcachetable
Code of Conduct
Feature Description
User confirmation prompt for desctructive commands
migrateandcreatecachetable, which can be bypassed using-no--inputflagProblem
is a subset of
A preview command is walking into destructive territory which has no safety rails, accidentaly execution can lead to unnecessarily painful experience. Not to mention explicit consent/cofirmation is a UX for destructive commands in place which some of the management commands already follow.
Request or proposal
proposal
Additional Details
This proposal is evolved from initial discussion, here's more information #163
Note: flush/collectstatic already follow proposed pattern
Implementation Suggestions
User executes:
Prompted with: "This command can modify database. Are you sure you want to proceed ? [Y/N]
User executes:
Migration is applied
Similar pattern will be followed for
createcachetable