Tuesday, September 29, 2020

Re: Django Sitemap HTTP Error 500

Hi Dum Dum,

On 29/09/2020 10.26, dum dum wrote:
> I'm using django sitemap to generate my sitemap.
> In local it works normally, I can visit
> <> and see the data. But in production,
> I got http error 500 (site matching query not exist) when trying to
> access "domain.com/sitemap.xml <http://domain.com/sitemap.xml>". I've
> been following solutions on the internet, and one of those is from this link

And as I and others have tried to tell you several times, you can
continue to try random code you find on the internet and hope that the
problem will somehow go away without really knowing why.

That's not a very productive way to write code and just a waste of time.

What you really want to do is to get access to your Django logs where
you most likely have an uncaught exception or something similar pointing
out exactly where the error is and you will most likely be able to fix
it easily.

You do want to be able to access your Django logs in production no
matter what, as this will not be the last time you have an error that
only shows up in production.

Personally I get an email with a full backtrace etc. when an error like
this occurs, which is quite useful in my case, but might not be the
right thing in your case.

If you have problems finding out how to access the logs, then feel free
to ask questions related to that.

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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/016ab31a-8b9d-13fd-959f-06bbf4a1930c%40stacktrace.dk.

No comments:

Post a Comment