Opened 16 years ago
Closed 16 years ago
#9190 closed (invalid)
problem in tutorial
Reported by: | webcomm | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.0 |
Severity: | Keywords: | models, unicode | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
At http://docs.djangoproject.com/en/dev/intro/tutorial01/#intro-tutorial01 it doesn't tell you that you have to use the sql and syncdb commands again after you add the __unicode__()
method to the model and upload the model. I figured that out by trial and error; the documentation should be more explicit.
Change History (1)
comment:1 by , 16 years ago
Description: | modified (diff) |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
It isn't necessary to run sql (which actually does nothing with the database, it just prints out statements for your information) or syncdb after adding a
__unicode__()
method to a model. Syncdb creates tables, you only need to run it when you add a model to your application. I am not sure what you mean by "upload the model" as the word "upload" doesn't appear on the page you pointed to. I'm not really sure what happened in your case that was fixed by running syncdb, but telling people to re-run it after adding the__unicode__()
method is not correct.