Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question