Wpis z mikrobloga

#naukaprogramowania #django nie rozumiem o co chodzi. Usunąłem wszystkie obiekty z bazy danych, następnie pozmieniałem argumenty klasy w models.py . Chciałbym teraz dodać nowe objekty o innych atrybutach więc robię python manage.py makemigrations ale django widzi problem. Pomimo, ze usunąłem wszystkie instancję klasy z bazy danych to django wyrzuca: You are trying to add a non-nullable field 'thumb' to scrapee without a default; we can't do that (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 let me add a default in models.py
Ma jakiś problem z existing rows chociaż w existing rows nic nie ma bo wszystko wcześniej usunąłem
  • 1