MacOS – How to tell Firewall to allow incoming connections for Python.app running Django

firewallmacospython

Each time I run my Django development server, I get a dialog to allow incoming connections.

No matter what I do :

OS X still systematically ask me to allow incoming connection.

It's not just annoying, it's impossible to work with my IDE which restart the dev server after each code change.

enter image description here

I have to either turn off the firewall, or change my IDE configuration, both are bad solutions.

How can I permanently add the script in my firewall allowed apps?

I'm running Maverick 10.9.4

Best Answer

Signing the python application, using the instruction in the answer to this question, worked for me.