Not getting Python Example to work in Django

I am creating a Django app with Pycharm, and am trying to follow this guide

But not seeing any lines in Loggly, even if can see logging working in the console window in pycharm.

Have attempted successfully to send lines with curl as described in the troubleshooting guide.

Have verified with the debugger that my customer key is being picked up from in the module