It is impossible to add a non-nullable field 'record' to certification 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.
Select an option:
python manage.py makemigrations
๋ฐฑ์์ ๊ธฐ์กด ์์ฑ๋ models.py๋ฅผ ์์ ํ์ จ๋๋ฐ ๊ทธ๊ฑธ ๋ชจ๋ฅด๊ณ ๊ทธ๋ฅ makemigrations๋ฅผ ํ๋ ๋ฐ์ํ ์๋ฌ์๋ค. ๊ตฌ๊ธ๋งํด๋ ์ ์ ๋์์ ์ค๋ฅ ์์ธ์ด ๋น์ทํ ๋ค๋ฅธ ์๋ฌ ํด๊ฒฐ๋ฐฉ๋ฒ์ ์ฌ์ฉํ๋ค...
cd migrations0001_initial.py ์ ๊ฐ์ ํํ์ ํ์ผ์ ์ญ์ ํ๋ค. rm 0001_initial.py
rm 0002_some_change.pypython manage.py makemigrations