django It is impossible to add a non-nullable field 'gateway' to order without specifying a default. This is because the database needs something to populate existing rows. Please select a fix

Add a Default Value

Step 1: Add a default value to the non-nullable field 'gateway' in the model.

gateway = models.CharField(default='default_value', ...)

Step 2: Run the makemigrations command to create a migration for the model changes.

python makemigrations

Step 3: Run the migrate command to apply the migration to the database.

python migrate