Add new User/Poll Fixture + Update Readme

This commit is contained in:
sosokker 2023-09-12 12:53:14 +07:00
parent e733fac7aa
commit 953e6736ce
5 changed files with 346 additions and 21 deletions

View File

@ -75,6 +75,15 @@ python -m virtualenv .venv
|:--:|:--:|
|admin|ineedmorebullets|
## Demo User
|Username|Password|
|:--:|:--:|
|tester1|aa12345678aa|
|tester2|aa12345678aa|
|tester3|aa12345678aa|
|tester4|aa12345678aa|
## Project Documents
All project documents are in the [Project Wiki](https://github.com/Sosokker/ku-polls/wiki).

242
data/polls.json Normal file
View File

@ -0,0 +1,242 @@
[
{
"model": "polls.question",
"pk": 1,
"fields": {
"question_text": "Python vs C++, which one is better in your opinion?",
"pub_date": "2023-09-05T06:31:14Z",
"end_date": "2023-09-29T20:31:49Z",
"short_description": "Cool kids have polls",
"long_description": "No description provide for this poll.",
"up_vote_count": 5,
"down_vote_count": 0,
"participant_count": 6,
"tags": []
}
},
{
"model": "polls.question",
"pk": 2,
"fields": {
"question_text": "The chicken and the egg, which came first?",
"pub_date": "2023-09-11T02:50:04Z",
"end_date": "2023-09-19T23:50:19Z",
"short_description": "Cool kids have polls",
"long_description": "No description provide for this poll.",
"up_vote_count": 1,
"down_vote_count": 0,
"participant_count": 0,
"tags": []
}
},
{
"model": "polls.question",
"pk": 3,
"fields": {
"question_text": "So far so good?",
"pub_date": "2023-08-03T06:50:43Z",
"end_date": "2023-11-15T19:50:53Z",
"short_description": "Cool kids have polls",
"long_description": "No description provide for this poll.",
"up_vote_count": 1,
"down_vote_count": 0,
"participant_count": 0,
"tags": []
}
},
{
"model": "polls.question",
"pk": 4,
"fields": {
"question_text": "Do you love Django?",
"pub_date": "2023-09-11T19:51:12Z",
"end_date": "2023-09-13T17:51:18Z",
"short_description": "Cool kids have polls",
"long_description": "No description provide for this poll.",
"up_vote_count": 10,
"down_vote_count": 0,
"participant_count": 0,
"tags": []
}
},
{
"model": "polls.choice",
"pk": 1,
"fields": {
"question": 1,
"choice_text": "C++"
}
},
{
"model": "polls.choice",
"pk": 2,
"fields": {
"question": 1,
"choice_text": "Python"
}
},
{
"model": "polls.choice",
"pk": 3,
"fields": {
"question": 2,
"choice_text": "Egg!"
}
},
{
"model": "polls.choice",
"pk": 4,
"fields": {
"question": 2,
"choice_text": "Chicken"
}
},
{
"model": "polls.choice",
"pk": 5,
"fields": {
"question": 3,
"choice_text": "Yes sir!"
}
},
{
"model": "polls.choice",
"pk": 6,
"fields": {
"question": 3,
"choice_text": "Nah"
}
},
{
"model": "polls.choice",
"pk": 7,
"fields": {
"question": 4,
"choice_text": "Yeah for sure!"
}
},
{
"model": "polls.choice",
"pk": 8,
"fields": {
"question": 4,
"choice_text": "Hell nah!"
}
},
{
"model": "polls.choice",
"pk": 9,
"fields": {
"question": 4,
"choice_text": "No comment."
}
},
{
"model": "polls.vote",
"pk": 1,
"fields": {
"choice": 1,
"user": 1,
"question": 1
}
},
{
"model": "polls.vote",
"pk": 2,
"fields": {
"choice": 2,
"user": 3,
"question": 1
}
},
{
"model": "polls.vote",
"pk": 3,
"fields": {
"choice": 1,
"user": 2,
"question": 1
}
},
{
"model": "polls.vote",
"pk": 4,
"fields": {
"choice": 7,
"user": 2,
"question": 4
}
},
{
"model": "polls.vote",
"pk": 5,
"fields": {
"choice": 6,
"user": 2,
"question": 3
}
},
{
"model": "polls.vote",
"pk": 6,
"fields": {
"choice": 4,
"user": 2,
"question": 2
}
},
{
"model": "polls.vote",
"pk": 7,
"fields": {
"choice": 8,
"user": 4,
"question": 4
}
},
{
"model": "polls.vote",
"pk": 8,
"fields": {
"choice": 6,
"user": 4,
"question": 3
}
},
{
"model": "polls.vote",
"pk": 9,
"fields": {
"choice": 3,
"user": 4,
"question": 2
}
},
{
"model": "polls.vote",
"pk": 10,
"fields": {
"choice": 2,
"user": 4,
"question": 1
}
},
{
"model": "polls.vote",
"pk": 11,
"fields": {
"choice": 6,
"user": 3,
"question": 3
}
},
{
"model": "polls.vote",
"pk": 12,
"fields": {
"choice": 3,
"user": 3,
"question": 2
}
}
]

View File

@ -1,20 +0,0 @@
[
{
"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": []
}
}
]

92
data/users.json Normal file
View File

@ -0,0 +1,92 @@
[
{
"model": "auth.user",
"pk": 1,
"fields": {
"password": "pbkdf2_sha256$600000$aDh9a1PXxcXAb8z3YIjAPX$NVH24kt/wMad+0fZcCii738dfojI4vL2ffXOwNRuLz4=",
"last_login": "2023-09-12T04:02:42.758Z",
"is_superuser": true,
"username": "admin",
"first_name": "",
"last_name": "",
"email": "admin@email.com",
"is_staff": true,
"is_active": true,
"date_joined": "2023-09-11T18:24:20.740Z",
"groups": [],
"user_permissions": []
}
},
{
"model": "auth.user",
"pk": 2,
"fields": {
"password": "pbkdf2_sha256$600000$quZKLKT8Ec3TQgpdqlCkpX$o+VOOnRDLGf64qjHb239Yvsre74tPkC8hw1qH1un/hk=",
"last_login": "2023-09-12T04:22:38.555Z",
"is_superuser": false,
"username": "tester1",
"first_name": "",
"last_name": "",
"email": "",
"is_staff": false,
"is_active": true,
"date_joined": "2023-09-11T19:41:22.592Z",
"groups": [],
"user_permissions": []
}
},
{
"model": "auth.user",
"pk": 3,
"fields": {
"password": "pbkdf2_sha256$600000$1xGp6EDCoaljdTlSdVT1Mn$UID0Woeh8hwW7LtchH+hKzqdKTDeITTxQ/0DGvfG3CY=",
"last_login": "2023-09-11T19:57:39.303Z",
"is_superuser": false,
"username": "tester3",
"first_name": "",
"last_name": "",
"email": "",
"is_staff": false,
"is_active": true,
"date_joined": "2023-09-11T19:41:41.209Z",
"groups": [],
"user_permissions": []
}
},
{
"model": "auth.user",
"pk": 4,
"fields": {
"password": "pbkdf2_sha256$600000$fJJcIwAuIESYwZDBOqBv8t$YEDVCgg/xJOqAOiAdvGvvqgi1jgn1YfYHJE9yx2JWTA=",
"last_login": "2023-09-11T19:55:41.583Z",
"is_superuser": false,
"username": "tester2",
"first_name": "",
"last_name": "",
"email": "",
"is_staff": false,
"is_active": true,
"date_joined": "2023-09-11T19:43:25.226Z",
"groups": [],
"user_permissions": []
}
},
{
"model": "auth.user",
"pk": 5,
"fields": {
"password": "pbkdf2_sha256$600000$aHyU2gjOR6Vfsh3DBMIvQy$PZwRu+rOLc+N15DDguvy29dks6GUiN5YN/4io8b390o=",
"last_login": null,
"is_superuser": false,
"username": "novote",
"first_name": "",
"last_name": "",
"email": "",
"is_staff": false,
"is_active": true,
"date_joined": "2023-09-11T19:52:38.130Z",
"groups": [],
"user_permissions": []
}
}
]

View File

@ -9,4 +9,6 @@
{% else %}
<p>The password reset link was invalid, possibly because it has already been used. Please request a new password reset.</p>
<p>The password reset link was invalid, possibly because it has already been used. Please request a new password reset.</p>
{% endif %}