I added and removed the fields in the models.py file, and then ran manage.py syncdb. Usually I have to exit the shell and reload it before syncdb does anything. And then even after that, I get errors when trying to access the admin pages, it seems that some of the new fields that I added are still not showing up in the model:
Caught an exception while rendering: no such column: mySite_book.Title
Django does not perform database migration for you, that is, if you add new fields, Django will not modify your database schema.
You can:
( ), test.db . /manage.py syncdb. ...
@Barthelemy, Django:
Source: https://habr.com/ru/post/1739690/More articles:Molded windows in gtkmm - c ++ΠΠ°ΠΉΡΠΈ ΠΏΠ°ΠΏΠΊΠΈ Ρ ΠΎΠΏΡΠ΅Π΄Π΅Π»Π΅Π½Π½ΡΠΌ ΠΈΠΌΠ΅Π½Π΅ΠΌ ΠΈ Π±Π΅Π· ΡΠΈΠΌΠ²ΠΎΠ»ΠΈΡΠ΅ΡΠΊΠΎΠΉ ΡΡΡΠ»ΠΊΠΈ Π½Π° Π½ΠΈΡ - linuxDeserialize shared collections - go empty - c #Serving a request for a servlet - javaWhy should I use VARCHAR over TEXT in MySQL? - mysqlUsing msmq and wcf - c #Project setup for ADO.NET/WCF DataService - asp.netHow to fix these compiler errors? - c ++Trying to determine the best design for this workflow - C # - 3.0 - workflowNeed help setting up comet code - jqueryAll Articles