‘NOT NULL constraint failed’ after adding to models.py

You must create a migration, where you will specify default value for a new field, since you don’t want it to be null. If null is not required, simply add null=True and create and run migration.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)