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.
546 Understanding How to Configure Google API Key
549 PHP ssh2_scp_send fails to send files as intended
712 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
547 Who developed the "avformat-59.dll" that comes with FFmpeg?
548 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
© 2024 OneMinuteCode. All rights reserved.