X
Xata3mo ago
teri

I need help with this Django project

I worked on a link shortener app where you can create links for later, but when viewing the page in production, the home route does not display the content as it does on localhost. What may be the problem? Live URL: https://xata-link-shortner.onrender.com/ Repo: https://github.com/Terieyenike/xata-link-shortner
GitHub
GitHub - Terieyenike/xata-link-shortner: create shorter URLs for an...
create shorter URLs for any webpage and track how many clicks each gets. - GitHub - Terieyenike/xata-link-shortner: create shorter URLs for any webpage and track how many clicks each gets.
No description
5 Replies
teri
teri3mo ago
When creating a new link, it shows a 500 server error in production.
No description
kostas
kostas3mo ago
Hi, looking at the prod app, when creating the link the server returns HTTP 302 (redirect to another location) to location / so the browser instead goes to / which returns a 500.
No description
kostas
kostas3mo ago
So it is the handling of that redirect that causes the 500 It looks like it is sporadic though because in Chrome it works
kostas
kostas3mo ago
teri
teri3mo ago
it is meant to redirect to the home route (/) and replace the "no links ..." to an actual link created and its other details.
Want results from more Discord servers?
Add your server