Answer the question
In order to leave comments, you need to log in
How to connect MongoDB to Django?
Created a Python project using the Django framework , wanted to change the database from sqlite3 to MongoDB . I googled found several articles but wrote here very old because of the outdated connection method.
At the moment, the database in the settings.py file looks like this:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': BASE_DIR / 'db.sqlite3',
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question