Delete db.sqlite3 from remote repos/ Add superuser and poll data to remote

This commit is contained in:
sosokker 2023-08-31 17:25:12 +07:00
parent 8398e8bdb3
commit e60a795494
4 changed files with 75 additions and 1 deletions

2
.gitignore vendored
View File

@ -58,7 +58,7 @@ cover/
# Django stuff: # Django stuff:
*.log *.log
local_settings.py local_settings.py
# db.sqlite3 db.sqlite3
db.sqlite3-journal db.sqlite3-journal
# Flask stuff: # Flask stuff:

54
data/polls-v1.json Normal file
View File

@ -0,0 +1,54 @@
[
{
"model": "polls.question",
"pk": 1,
"fields": {
"question_text": "Python vs C++, which one is better in your opinion?",
"pub_date": "2023-08-28T13:38:42Z"
}
},
{
"model": "polls.question",
"pk": 2,
"fields": {
"question_text": "The chicken and the egg, which came first?",
"pub_date": "2023-08-28T13:39:16Z"
}
},
{
"model": "polls.choice",
"pk": 4,
"fields": {
"question": 2,
"choice_text": "Chicken",
"votes": 5
}
},
{
"model": "polls.choice",
"pk": 5,
"fields": {
"question": 2,
"choice_text": "Egg",
"votes": 2
}
},
{
"model": "polls.choice",
"pk": 6,
"fields": {
"question": 1,
"choice_text": "Python!",
"votes": 2
}
},
{
"model": "polls.choice",
"pk": 7,
"fields": {
"question": 1,
"choice_text": "C++",
"votes": 2
}
}
]

20
data/user.json Normal file
View File

@ -0,0 +1,20 @@
[
{
"model": "auth.user",
"pk": 1,
"fields": {
"password": "pbkdf2_sha256$600000$iGfCFe97r89Z86pdlQGUnB$WWlHxi2Q1iVSSk0kZt0C5QSwwBKwzEofhJ8CBvakemU=",
"last_login": null,
"is_superuser": true,
"username": "admin",
"first_name": "",
"last_name": "",
"email": "admin@email.com",
"is_staff": true,
"is_active": true,
"date_joined": "2023-08-31T10:14:33.235Z",
"groups": [],
"user_permissions": []
}
}
]

Binary file not shown.