You can do that with fixtures:

https://docs.djangoproject.com/en/1.10/howto/initial-data/



On Tuesday, October 4, 2016 at 7:21:07 PM UTC-4, Victor Porton wrote:
>
> After generating DB scheme, I need to add two rows with certain data to 
> certain table.
>
> How to do it?
>
> Can it be handled with migrations?
>
> A complication is that these two rows contain strings dependent on the 
> user's language.
>
> Can this be done?
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5db3f602-f0b7-444c-82ee-4a51659dbfb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to