OK, I have never seen that error happen before, but I am suspecting that it could be an issue with the Nginx configuration rather than the DjangoPBX code itself.
Have you tried connecting using httsp in the url? I.E.:
https://mylocalip/ Let me know if that works for you.