New field in Django model does not appear in admin interface or model forms

I created a model in one of my applications that works great. However, I needed to add a new field. I did this and used manage.py reset <appname> to delete the tables and add them again. This process went fine - a new field appears in the database. However, I cannot get the field to appear in the admin interface, as well as in the form of the user model I created. Since I did not give it a default value (and I do not want it, and I do not need it), I cannot use any method to add a row to the database. Any ideas?

Excerpt from the model:

 use_balance = models.BooleanField() 
+4
source share
2 answers

Did you restart the server?

+6
source

If you forgot to update the definitions of ModelAdmin ?

+1
source

All Articles