Код: Выделить всё
name = models.CharField(max_length=128, unique=True)
Код: Выделить всё
It is impossible to add a non-nullable field 'name' to table_name without specifying a default. This is because the database needs something to populate existing rows.
Please select a fix:
1) Provide a one-off default now (will be set on all existing rows with a null value for this column)
2) Quit and manually define a default value in models.py.
Если я попытаюсь установить значение по умолчанию в командной строке, появится сообщение: «Пожалуйста, выберите действительный параметр».
Как это исправить?
Подробнее здесь: https://stackoverflow.com/questions/751 ... out-specif
Мобильная версия