On Apr 5, 11:26 am, zayatzz <alan.kesselm...@gmail.com> wrote: > Hello > > After finishing tutorial im trying to do something for myself. I > created one model and proceeded to create another ones, but then i > realised that i could just add few additional columns to existing > model, but for some reason they dont end up in database table when i > run python manage.py. > > I found this bit of help > -http://docs.djangoproject.com/en/dev/faq/models/#if-i-make-changes-to... > > But thats not exactly what i want, since it also empties the tables.
But that same FAQ gives you the alternative solution - run ALTER TABLE statements on your database manually. Or you can investigate one of the existing projects that help with this - django-evolution, south, or dmigrations. > Another one about django and databases. When i add the fields in admin > i cant leave them empty... why not? what do i have to do in model or > admin, so i could heave fields empty? http://docs.djangoproject.com/en/dev/topics/db/models/#field-options -- 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 -~----------~----~----~----~------~----~------~--~---