On Dec 11, 1:52 pm, "bax...@gretschpages.com" <mail.bax...@gmail.com>
wrote:
> On Dec 11, 12:21 pm, Zeynel <azeyn...@gmail.com> wrote:
>
> syncdb will not alter an existing database. You can run it (it won't
> hurt) but it won't insert the new fields.

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.

> You'll need to go to your
> database, either through the command line or through a tool like
> phpmyadmin and add the new fields manually. You can, however, run
> manage.py sql YOURAPP to see what the table should look like.

--

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.


Reply via email to