Skip to content
Advertisement

Django – can’t run server as sudo

I’m creating a soft AP in order to configure my raspberry wireless from it.

I alread have an script to create a hotspot, a dhcp server and now i need to run a django app using sudo.

(Yes, using sudo. I’m waking up my django server from my python script, and the script needs to run as sudo)

I’m getting the following error:

JavaScript

When i run the server without sudo, it works as well.

How can i fix it to run the server as sudo?

Advertisement

Answer

Check if sudo and the “normal” user have the same python and Django Version.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement