You can also use the south application to manage migrations.
pip install south

Then add 'south' to the list of installed apps.

To start off you can do
./manage.py schemamigration --initial appname
./manage.py migrate appname

Then whenever you make a change to your models:
./manage.py schemamigration --auto appname # this will show the
changes and ask some questions...
./manage.py migrate appname


On Feb 8, 1:25 pm, Artyom Chernetzov <achernet...@gmail.com> wrote:
> Thanks, everybody, problem was: I add ForeignKey field in object after
> dbsync. I just needed to reset database, it solve problem.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@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