A
A
alexey_kolom2019-12-04 15:52:38
Django
alexey_kolom, 2019-12-04 15:52:38

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

I decided to check python versions.
The console version is 3.7.0, and the scheduler is 2.6.6.
How to change python version in scheduler?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Kitaev, 2019-12-04
@deliro

You execute your script in the scheduler. So specify python3 instead of python in the "Command" field

D
Dr. Bacon, 2019-12-04
@bacon

Again, somewhere stupid tutorial or something washed down? How to run python script of django project on hosting? Well, or is it one woodpecker under different accounts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question