On Jan 29, 9:07 am, arbi <arbin...@gmail.com> wrote:
> Hi,
>
> I am a newb in Django and I find it very nice... But the current
> problem is that, when I try to synchronize my models (using python
> manage.py syncdb), an attribute that I changed did not change in my
> database. For instance :
>
> class Route (models.Model) :
> name=.....
> attribute 2
> attribute 3
> etc.
>
> that I change to :
>
> class Route (models.Model) :
> newNameAttribute=.....
> attribute 2
> attribute 3
> etc.
>
> Then I run python manage.py syncdb, everything goes well in the
> shell,
> EXCEPT : no changings in my database.
> Then when I want to create an instance of Route I got a NameError :(
>
> Thanks for your help!
Please read the lovely documentation, especially the bit in the big
box here:
http://docs.djangoproject.com/en/dev/ref/django-admin/#syncdb
Then search the archives of this list for 'migrations'.
--
DR.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---