StackOverFlow--Clone
StackOverFlow--Clone copied to clipboard
it does not update the users
I'm testing it locally and with sqlite and it doesn't let me update the users and it doesn't let me mark the correct answer and vote for the answers
@rodrigo1525 What does it show ? Any errors in terminal ? Can you upload the full error ?
in django 4.0 version the 'is_ajax' tribute was removed. which for future versions will cause the user's information, their votes and their questions to not be updated.
@rodrigo1525 Hello Rodrigo, Thanks for pointing that out, I have replaced HTTP is_ajax method
with my own is_ajax function
. Now it should not show the error about is_ajax
.
But you still didn't upload the error that was occurring, wait a minute... Are you using Django 4.x ? If yes then you can run this project without any errors now.
And If error about anything still occurs than you can create a issue and feel free to contribute.
@Yawan-1 you have a design problem. the first user will create a question the second will answer it. but the first one will not be able to vote for him because he does not have the necessary reputation and then he will not be able to select the correct answer as well.
@rodrigo1525, Hello there, I think you misunderstood it, of course the first one will not be able to vote it, it takes about 15 reputation to vote up.
he will not be able to select the correct answer as well
I checked the functiion and user can mark as accept answer without any restrictions. I didn't implement any reputation restrictions in this function, that's why user can mark answer as accepted without any restriction error.