invaild syntax error in kali server

I have a django project I want to publish it on an ubuntu server when I activate the virtual environment and make python runserver:

File "",line 17
)from exc
SyntaxError:invalid syntax

I'm getting the same error in every command about, not just the run server. I tried the makemigrations and migrate commands, it didn't work.

I activated the virtual environment, it still didn't work I deleted django and reinstalled it still didn't work

Back to Top