I have been using windows os for development. I have very little understanding of commands in linux. I'm trying to deploy a django application on AWS EC2 instance but got stuck while trying to migrate to the database. I ran the command: sudo python3 manage.py migrate
but I keep getting the following error.
Traceback (most recent call last):
File "manage.py", line 22, in <module>
main()
File "manage.py", line 11, in main
from django.core.management import execute_from_command_line
File "/usr/local/lib/python3.5/dist-packages/django/core/management/__init__.py", line 13, in <module>
from django.apps import apps
File "/usr/local/lib/python3.5/dist-packages/django/apps/__init__.py", line 1, in <module>
from .config import AppConfig
File "/usr/local/lib/python3.5/dist-packages/django/apps/config.py", line 7, in <module>
from django.utils.deprecation import RemovedInDjango41Warning
File "/usr/local/lib/python3.5/dist-packages/django/utils/deprecation.py", line 5, in <module>
from asgiref.sync import sync_to_async
File "/usr/local/lib/python3.5/dist-packages/asgiref/sync.py", line 114
launch_map: "Dict[asyncio.Task[object], threading.Thread]" = {}
^
SyntaxError: invalid syntax
During development on windows os, whenever I run python manage.py migrate
on the same project everything works well. But When I clone it from github I'm not able to migrate using linux ubuntu command. Please how do I fix the problem?