which user?

a user usually is known during a request, while running the migration there
are no users, you can access all users the same way you may access all the
database, but this is not a user requested operation like a view processing
a template.

In any case you still may add/remove/modify data running migration, this is
called data migration


On Wed, Oct 5, 2016 at 2:21 AM, Victor Porton <por...@narod.ru> 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/017c3db6-ae9f-48fa-ad81-2e0a1fccb459%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/017c3db6-ae9f-48fa-ad81-2e0a1fccb459%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAFWa6tKVxb_5eAjY%2BS_Amc8_aX%2BAGNeC2SVN5tV9cNzz8EoxVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to