[Answer]-Members_data.dob may not be NULL in Django


The syncdb command only creates tables if they do not exist. It does not handle migrations for you. You have a few options:

  1. If there is no important data in the table, drop the table and run syncdb again to recreate it.
  2. Update the column to allow null in a db shell. The correct command depends on which database you are using.
  3. Use a migration tool, like South.

To drop the table in sqlite:

Open a dbshell

./manage.py dbshell

Drop the table

drop table <tablename>

Leave a comment