N
N
nekaino2020-03-19 19:54:56
Django
nekaino, 2020-03-19 19:54:56

How to connect django and mongodb(django_mongodb_engine)?

Django complains about connecting mongo. Read the connection manual. I did everything as described: https://django-mongodb-engine.readthedocs.io/en/la...
but it says that I can only connect sql. I am writing a website for a game server. Everything in the game is on mongoDB. As planned, you need mongo, since the rest of the aspects are written for mongo. If there is a sql option to make friends with mongo with one key - write.
In terminal
it says: ImproperlyConfigured: 'django_mongodb_engine' isn't an available database backend.
Try using 'django.db.backends.XXX', where XXX is one of:
'mysql', 'oracle', 'postgresql_psycopg2', 'sqlite3'
Error was: No module named 'django_mongodb_engine'

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2020-03-19
@dimonchik2013

Error was: No module named 'django_mongodb_engine
'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question