Django - AttributeError encountered when linking database: module 'djongo.models' has no attribute 'ListField'

1. Problem

At the beginning of the query, I saw that djongo was going to be downgraded to version 1.3.2.

So change to djongo==1.3.2

After changing it, a new error was reported.

django.core.exceptions.ImproperlyConfigured: 'django-pyodbc-azure' isn't an available database backend.
Try using 'django.db.backends.XXX', where XXX is one of:
    'mysql', 'oracle', 'postgresql', 'sqlite3'

Check again on stackoverflower and github

It was found that the django version needs to be reduced to 2.2

djongo' isn't an available database backend · Issue #171 · nesdis/djongo · GitHub icon-default.png?t=LBL2https://github.com/nesdis/djongo/issues/171 can be switched to 2.2 and the error remains.

Then look down, and finally see below that the version of pymongo also needs to be reduced.

Django==3.0.3
djongo==1.3.1
pymongo==3.10.1

Finally, after the versions of the three dependencies were lowered, the project started successfully.

Summarize:

The compatibility of djongo is really not very good!

Guess you like

Origin blog.csdn.net/songkai558919/article/details/122254956