I'm hosting a server at pythonanywhere Below is the address.
http://ssy10011218.pythonanywhere.com/
If you click on comment, it says 400 bad request... I really don't know where it went wrong. If I have to upload the code, I will edit it and upload it. (Crying)
django pythonanywhere
The 400 bad request is definitely a problem with the part that sends the request.
Usually, it is a problem that occurs when you choose the wrong location to send a request
When I opened the developer tool and checked it, I was able to confirm that you set the url wrong.
{% url 'add_comment_to_post' pk=post.pk %]
Not that
{% url 'add_comment_to_post' pk=post.pk %}
That's right.
You can change the brackets at the end to the brackets.
613 GDB gets version error when attempting to debug with the Presense SDK (IDE)
578 Understanding How to Configure Google API Key
584 PHP ssh2_scp_send fails to send files as intended
623 Uncaught (inpromise) Error on Electron: An object could not be cloned
576 Who developed the "avformat-59.dll" that comes with FFmpeg?
© 2024 OneMinuteCode. All rights reserved.