doableware / djongo

Django and MongoDB database connector
https://www.djongomapper.com
GNU Affero General Public License v3.0
1.86k stars 352 forks source link

Not working with latest version of Django #617

Open ShourovRoy opened 2 years ago

ShourovRoy commented 2 years ago

Giving an error that djongo is not a database engine. I have installed djongo via pip. Is there any solution or any fix?

j-riebe commented 2 years ago

For some reason you need to install pytz first.

In my case ImproperlyConfigured was raised in django.db.utils.py L126 due to a ModuleNotFound("No module named 'pytz'") in django.db.utils.py L113.

https://github.com/django/django/blob/d3677043fce0fec5d082e8cae142d5e5df35a2b5/django/db/utils.py#L112-L135

Is the pytz version in the requirements somehow incompatible with some other packages?

divanov11 commented 2 years ago

Same issue here. Looking for solutions now. Would love to hear any updates on this.

keder-code-hash commented 2 years ago

Install django==3.1.14 and install latest djongo module.It will be solved.

MiltosD commented 1 year ago

It runs with Django 4.1 but you need to do downgrade pymongo to 3.x

pekosoG commented 1 year ago

It runs with Django 4.1 but you need to do downgrade pymongo to 3.x

@MiltosD you helped me a lot with this but was not the only thing i needed in order to make it run, i also had to install:

pymongo==3.13.0
pytz==2022.6
sqlparse==0.2.4

I have plenty of tests to run before keep coding, but at least right now im able to run my migrations and boot the service