Sunday, December 28, 2014

Re: initial dta for model in Django 1.7 or newer

Hi,

You are asking about initial data? Use RunPython or RunSQL.
https://docs.djangoproject.com/en/dev/ref/migration-operations/#special-operations

Collin

On Thursday, December 25, 2014 9:06:35 AM UTC-6, Robert Jonathan Šimon wrote:
Hi,
When i googled for this problem a found out, that with migrations in Django 1.7, there is new way how it should be done, but i didnt understand it how. Can anyone explain me the new way how to do it?
Thanks a lot.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4812b852-2083-49e4-922f-2e1d01ca8c8e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment