sudoers to execute commands as another user
Solution 1:
You can put the user to run as in parentheses before the command list:
ludo ALL = (django) NOPASSWD: ALL
Solution 2:
For a finer grained control you could consider defining the specific command that ludo
will be running as django
.
ludo ALL=(django) NOPASSWD: /usr/bin/python