R
R
Rustem Vorozheikin2015-06-08 13:51:07
Django
Rustem Vorozheikin, 2015-06-08 13:51:07

In which base is superuser created in django?

Good afternoon.
Now, if it is in the django virtual environment. Created a project and superuser to it. Made a migration. The base costs sqlite3. Here, after the migration, the db.sqlite file is created. And as I understand it, the superuser is created there. Now, if I create a superuser on the server, say (user2), and user1 is created on the local machine, then when the project is deleted from the server and cloned from the repository, user2 will disappear on my server and user1 will appear, right? If yes, then do not tell me how best to proceed in order to save user2 on the server? Only "system data (user, etc.)" is stored in sqlite3, that is, I do not use it as the main database, I use Mongo to work with data.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2015-06-08
@sim3x

db.sqlite needs to be included in .gitignore
git can’t merge DB binaries
properly, those in the correct use case, the values ​​in the DB on production and dev do not intersect in any way
PS

I use Mongo to work with data.
mongo is not needed here at all

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question