> Now I have another: I'm unable to make django forget what I've done before! > > I still get the following error: > """ > (venv)alex@x301:~/Py/debk$ ./manage.py makemigrations > Did you rename lineitems.acount to lineitems.dc_type (a CharField)? [y/N] y > You are trying to add a non-nullable field 'acnt_number' to lineitems 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) > 2) Quit, and let me add a default in models.py > Select an option: > """ > As mentioned before, I deleted my data base but the error persists >
*snip* > How does Django even know what was in this file before, let alone why should it now care? > Did you delete the previously created migration files? Django won't ask those questions unless previous migration files exist. If you're starting with a fresh database, you probably should. -James -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciUwgWEEP_S7Ri%2BcjAPkceYh6REt2fEw_W7iMgCod8Hbxw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.