Answer the question
In order to leave comments, you need to log in
How to execute custom command on django in ISPmanager scheduler? How to change python version in ISPmanager scheduler?
Made a custom command.
If I call this command through the console, then everything works, but if I call it through the scheduler in ISPmanager, it does not work and displays this:
File "manage.py", line 16
) from exc
^
SyntaxError: invalid syntax
Answer the question
In order to leave comments, you need to log in
You execute your script in the scheduler. So specify python3 instead of python in the "Command" field
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question