In my django social media websites deployed as a web app, I have a view where user can make reposts of posts from other users. On the local environment(In my laptop); I can successfully repost posts with or with our images. But when I deployed the project into DO App platform where I have a postgress DB and a Spaces bucket for images, when I repost a post without images, it is reposted successfully, but when the post has an images, I get the server error 500 on the browser.
Now the confusing thing is that even if I get the error, when I refresh the browser, I the post with the images would have been reposted.
How can I prevent this error from happening as it is not good for users of the web app to see this - please not that works fine in my local server
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.