I'm new in django and facing a problem that I can not migrate changes in when I change the default sqlite3 engine to "djongo".
I'm using ubuntu server, and I have done the following steps:
$ pip3 install djongo
# setup djongo
DATABASES = {
'default': {
'ENGINE': 'djongo',
'NAME': 'zoo',
}
}
I do not know what is the problem but when I migrate the changes I get the following error message:
File "/usr/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/karam/.local/lib/python3.5/site-packages/djongo/base.py", line 12, in <module>
from .cursor import Cursor
File "/home/karam/.local/lib/python3.5/site-packages/djongo/cursor.py", line 2, in <module>
from .sql2mongo.query import Result
File "/home/karam/.local/lib/python3.5/site-packages/djongo/sql2mongo/__init__.py", line 34
self.alias2op: typing.Dict[str, SQLToken] = alias2op
SyntaxError: invalid syntax
Any ideas what do I missed ?