Giter Site home page Giter Site logo

Comments (6)

threehundred avatar threehundred commented on May 20, 2024

Sorry went back through history - I see you've dropped support for 1.7, will close.

from django-rest-framework-filters.

philipn avatar philipn commented on May 20, 2024

Thanks @threehundred! We should probably restrict the Django version in our setup.py, so I'm re-opening this issue.

from django-rest-framework-filters.

rpkilby avatar rpkilby commented on May 20, 2024

@philipn I'm kind of wondering what should be done here. A couple of thoughts:

  • If we want to specify a minimum Django version, should we or should django-filter do this? ie, we're an extension of django-filter, which is an extension of Django. For all intents and purposes, we have the same compatibility guarantees as django-filter (also notice that the actual error in the trace was thrown from django-filter).
  • There is some push to not specify Django in the requires section. See jazzband/django-model-utils#183. In short, it can cause some issues across multiple pip installs.
  • A lot of projects don't specify django in the requires. eg, DRF, django-filter

from django-rest-framework-filters.

philipn avatar philipn commented on May 20, 2024

Hmm. You're totally right that few apps seem to list a Django dependency. No strong opinion, but my 2c--

It seems like people should be pinning their version of Django in their project's requirements (and using something sweet like https://github.com/nvie/pip-tools, to boot!) If they did, they'd never have problems like in the linked ticket(s). In the linked ticket, @carljm says "[django] doesn't need any automatic dependency handling", but this kind of issue is exactly why the dependency would help people -- they'd find out there's a problem during installation rather than at run time.

I wonder what kind of problem is more common -- hitting an unknown error during an upgrade because a package hasn't been tested / support has dropped for your version of Django, or having Django automatically upgraded and not wanting that behavior.

from django-rest-framework-filters.

rpkilby avatar rpkilby commented on May 20, 2024

Thinking back,

  • Adding Django as a dependency creates a problem for development environments, not deployments. eg, you would pip install -U djangorestframework-filters to test out the latest changes, and then accidentally update Django itself. Installing from a requirements file should complain about conflicts.
  • drf-filters is more an extension of django-filter than it is an extension of Django. The django-filter dependency should be sufficient?
  • drf-filters at least supports all currently supported versions of Django. I think the real answer here is "Don't use an outdated and unsupported version of Django".

from django-rest-framework-filters.

rpkilby avatar rpkilby commented on May 20, 2024

@philipn - Are we agreed that django shouldn't be listed as a requirement? Closing this as it's an easy modification if you decide otherwise.

from django-rest-framework-filters.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.