djongo icon indicating copy to clipboard operation
djongo copied to clipboard

Not working with latest version of Django

Open ShourovRoy opened this issue 2 years ago • 5 comments

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

ShourovRoy avatar May 11 '22 06:05 ShourovRoy

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?

j-riebe avatar May 15 '22 17:05 j-riebe

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

divanov11 avatar Jun 23 '22 21:06 divanov11

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

keder-code-hash avatar Jun 29 '22 02:06 keder-code-hash

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

MiltosD avatar Dec 05 '22 17:12 MiltosD

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

pekosoG avatar Dec 17 '22 01:12 pekosoG