Re: Add rows in migrations?

2016-10-05 Thread Mario R. Osorio
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

Re: Add rows in migrations?

2016-10-04 Thread Avraham Serour
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

Add rows in migrations?

2016-10-04 Thread Victor Porton
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