That 404 Not Found page was generated by Django.
It seems Nginx isn’t handling /.well-known/acme-challenge/
statically, as you wanted it to. Instead it’s passing it to Django, which isn’t configured to handle it either.
What’s the Nginx virtual host’s whole configuration?