On Dec 11, 1:36 pm, Zeynel <azeyn...@gmail.com> wrote: > I am confused about this because the django documentation here > > http://docs.djangoproject.com/en/dev/intro/tutorial01/#activating-models > > says that, > > >> Now, run syncdb again to create those model tables in your database: > >> python manage.py syncdb > >> The syncdb command runs the sql from 'sqlall' on your database > >> for all apps in INSTALLED_APPS that don't already exist in your database. > >> This creates all the tables, initial data and indexes for any apps > >> you have added to your project since the last time you ran syncdb. > >> syncdb can be called as often as you like, > >> and it will only ever create the tables that don't exist. > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > So, it seems that, according to documentation, syncdb will create the > new tables? > > I am using sqlit3, by the way.
No it will "create those model tables in your database" ... "for all apps in INSTALLED_APPS that don't already exist in your database" ... "and it will only ever create the tables that don't exist." If the table already exists, you will need to manually modify it. For sqlite3, I would suggest the Firefox sqllite manager plugin, which makes editing the tables pretty easy. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.