djongo icon indicating copy to clipboard operation
djongo copied to clipboard

Django 3.1 support and JSONField implementation

Open eldritchhh opened this issue 4 years ago • 12 comments

Is it possible to know if the library will be updated to support Django 3.1 and the JSONField? Thank you in advance.

eldritchhh avatar Jan 19 '21 12:01 eldritchhh

Is it possible to know if the library will be updated to support Django 3.1 and the JSONField? Thank you in advance.

I'm using Django 3.1.5 and don't have any problem with Djongo. SAlu2s PD: Anybody have the ListField implementation?

MacKey-255 avatar Jan 19 '21 21:01 MacKey-255

Is it possible to know if the library will be updated to support Django 3.1 and the JSONField? Thank you in advance.

I'm using Django 3.1.5 and don't have any problem with Djongo. SAlu2s PD: Anybody have the ListField implementation?

How can I use Django 3.1.5 with Djongo? I got an error when I try to install the latest Django version...

eldritchhh avatar Jan 20 '21 08:01 eldritchhh

Is it possible to know if the library will be updated to support Django 3.1 and the JSONField? Thank you in advance.

I'm using Django 3.1.5 and don't have any problem with Djongo. SAlu2s PD: Anybody have the ListField implementation?

How can I use Django 3.1.5 with Djongo? I got an error when I try to install the latest Django version...

Follow this video: https://www.youtube.com/watch?v=YfjxnBgvcgA&t=277s In the video using django 2 but I'm using Django 3 and this work fine :)

MacKey-255 avatar Jan 20 '21 08:01 MacKey-255

The issue is that when I try to update Django to 3.1.5 I get the following error:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
djongo 1.3.3 requires django<=3.0.5,>=2.1, but you have django 3.1.5 which is incompatible.

EDIT. A solution is to edit the dependencies file, but I have to use Djongo in Docker so I cannot simply change the file locally... EDIT 2. The pull request I need has been merged. Is it in plan to release a new version on pip with these updates?

eldritchhh avatar Jan 20 '21 16:01 eldritchhh

Any update on this? Is there a plan to release updated pypi package with JSONField support?

n3hrox avatar Feb 03 '21 10:02 n3hrox

Any update on this? Is there a plan to release updated pypi package with JSONField support?

I partially solve the issue using the "-no-deps" parameter when during the installation of the requirements in my docker file (as you can see here)

eldritchhh avatar Feb 03 '21 11:02 eldritchhh

I'm afraid this won't really work in my case, as I'm using poetry, and they basically decided that they won't support ignoring dependencies for some reason...

n3hrox avatar Feb 03 '21 12:02 n3hrox

I am also using Poetry for dependency management and have been unable to install djongo for probably more than a year. (I've been checking every once in a while to see if djongo has been updated yet to support the current Django.)

% poetry add djongo

Using version ^1.3.4 for djongo

Updating dependencies
Resolving dependencies... (1.2s)

  SolverProblemError

  Because djongo (1.3.4) depends on django (>=2.1,<=3.0.5)
   and no versions of djongo match >1.3.4,<2.0.0, djongo (>=1.3.4,<2.0.0) requires django (>=2.1,<=3.0.5).
  So, because modularhistory depends on both django (~3.1) and djongo (^1.3.4), version solving failed.

  at ~/.poetry/lib/poetry/puzzle/solver.py:241 in _solve
      237│             packages = result.packages
      238│         except OverrideNeeded as e:
      239│             return self.solve_in_compatibility_mode(e.overrides, use_latest=use_latest)
      240│         except SolveFailure as e:
    → 241│             raise SolverProblemError(e)
      242│ 
      243│         results = dict(
      244│             depth_first_search(
      245│                 PackageNode(self._package, packages), aggregate_package_nodes

jacobjove avatar Apr 22 '21 16:04 jacobjove

Will Djongo be updated and support the latest Django?

eersky avatar May 31 '21 06:05 eersky

Will Djongo be updated and support the latest Django?

I am using Django 3.1.7 with Djongo 1.3.4. First, you need to install Djongo, then the latest Django; So far it seems to be working alright.

ahmedshahriar avatar Jun 07 '21 20:06 ahmedshahriar

Will Djongo be updated and support the latest Django?

I am using Django 3.1.7 with Djongo 1.3.4. First, you need to install Djongo, then the latest Django; So far it seems to be working alright.

I find the good news that Djongo 1.3.6 released the starting of this month, problem solved! It supports the latest Django now.

eersky avatar Jun 10 '21 03:06 eersky

refer to https://pypi.org/project/djongo/#history

eersky avatar Jun 10 '21 03:06 eersky