No, idea. Technically they could simply not show the plagiarism flag option in SG if it is intended (they already do that for some of the other flag options)
That does make sense but now I wonder whether we should have a feature request to simply remove that flag from SG and / or add some guidance along that
So my flag for the plagiarism got declined with the message: "This is what staging ground is for. If the user doesn't edit the bad question it won't get posted."
Has anyone tried flagging SG questions for plagiarism? I'm trying to flag this one as plagiarism of content from this dataset and most likely also some notebook but I'm getting a 500 error.
> In my free time, I enjoy [mention hobbies or interests, e.g., reading tech blogs, participating in hackathons, working on personal coding projects, etc.]. I’m always eager to connect with fellow developers and learn from their experiences.
I guess it's just that time of the year where students come to SO. I even saw a profile where they used generative AI or some template instead of writing it themselves xD
I wonder what's going on here. Initially OP gave working code citing that it didn't stop at 0. Later they edited the code and still say that it doesn't stop at 0 but their code doesn't even start looping. xD
I wonder why this user isn't a staff suddenly? They were staff when they posted that comment which was just 5 minutes ago and now they suddenly aren't.
@Anerdw IMO regardless of whether it is misused it should at least be renamed, just "solution" is somewhat ambiguous. It should probably have some prefix along with that.
Personally this can very well be a programming question of the form "My app fails to make local network requests after updating to macOS Sequoia" there's probably value to have a question like that.
Using the same Dockerfile with the same context does not assure same behaviour everywhere because the environment the image was built in might be relevant to the result of the build.
@GNA Ah, yes Django 3 doesn't seem to have a check for the Origin header. But didn't you say you both were using the same docker image? Note that when someone says "same docker image" people usually think "Docker image was built on one machine and shared to the other places it needs to run" and not "Code and Dockerfile were shared and an image was built up from it on both sides"
After the check the linked answer mentions Django also goes over the origins in CSRF_TRUSTED_ORIGINS to see if any match, if they do _origin_verified returns True. So very likely somewhere you aren't looking the setting is configured.
@GNA Hmm, still multiple ways that can go wrong. Lets say you both have CSRF_TRUSTED_ORIGINS set but its value is set to the domain name you're using and not the one your friend uses. Other ways could be that some of the settings might depend on environment variables, mounted files, etc.
If that's the case you probably have CSRF_TRUSTED_ORIGINS configured somewhere while your friend doesn't or are you actually hitting it with HTTP and not HTTPS?
If you see this answer it pretty much explains what happens. You end up comparing something like https://www.example.com (Origin header) to http://www.example.com (What Django assumes Origin header should be)
In that case your question lacks some debugging information. What's the versions of Django, gunicorn, docker that you're using? How do you and your friend run the container? What's your friends nginx config? Are you using Dockers host network mode?