W
W
Wayne2019-12-04 09:17:45
Django
Wayne, 2019-12-04 09:17:45

How to run python script of django project on hosting?

I have created a custom command. When you type python manage.py pars
into the console , the script is executed. But if I run this command on the hosting, then it gives me this:

/www/website/news/$ python manage.py migrate
  File "manage.py", line 16
    ) from exc
         ^
SyntaxError: invalid syntax

Where is the mistake?
Help me please!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2019-12-04
@alexkom6

Run python -Vand understand everything.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question