On 26/02/2021 19.09, Sergei Sokov wrote:
This code works on my local server, but doesnt work on the hosting. What could be the problem?


Hard to tell. You're explicitly throwing away any relevant information by using a catch-all exception handler.

Do any of your "an error happened" messages reach a log anywhere?

No matter what, don't catch exceptions if you don't have any way to handle them anyway, that makes it possible to debug and fix errors like these.

Kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0c8faa22-8fc3-d83c-7126-f17d65d5abcc%40stacktrace.dk.

Reply via email to