Giter Club home page Giter Club logo

Comments (12)

jpic avatar jpic commented on May 22, 2024 1

It would also be great if we could add them to a router, so that they be documented with the rest of the endpoint.

from django-rest-registration.

apragacz avatar apragacz commented on May 22, 2024 1

And please do update django rest framework dependency to latest.

This will be done in issue #70. Unfortunately it's not so simple as just bumping up the requirements.

from django-rest-registration.

apragacz avatar apragacz commented on May 22, 2024 1

BTW: there is already a lot to do for the 0.6.0 release, so I will aim with refactoring the views for release 0.7.0.

from django-rest-registration.

apragacz avatar apragacz commented on May 22, 2024

@peterthomassen
Sorry to respond so late. At first I didn't like this idea, as I think about Django View Classes as an uneccesary Javaification (aka "everything has to be a class"). On the other hand, I see this as a predominant pattern of extending the views in Django community, instead of function composability.
So it could definetely improve the extensibility in more advanced cases for average Django user. Therefore I decided that we should go for it, but in the next semi-major release (probably 0.6.0 as the current one is 0.5.0).

I think I would still leave the view functions, but they would be derived automatically from specific view class (which could be set in the settings dict - this way one does not have to fork the repository but he/she can replace specific view class in settings).

Do you agree?

from django-rest-registration.

peterthomassen avatar peterthomassen commented on May 22, 2024

yep, that sounds very good to me!

(I disagree on the Javaification argument. My point is not that it should be a class; that just happens to be the DRF way. My point really is that this approach offers a lot of ways to hook into the view execution flow.)

from django-rest-registration.

apragacz avatar apragacz commented on May 22, 2024

@jpic Could you explain what you mean by that? E.g. provide an example (snippet of code).

from django-rest-registration.

itzmanish avatar itzmanish commented on May 22, 2024

@apragacz Actually today i was working on a project and i thought using DRR with simplejwt. But what i found is all views are function based so to extending it and modifying is really hard(I don't know if there is any other ways by which i can achieve this). So what i suggest is using of generic views so that adaption process can be much smoother and safer for production ready web application. :)

from django-rest-registration.

itzmanish avatar itzmanish commented on May 22, 2024

And please do update django rest framework dependency to latest.

from django-rest-registration.

apragacz avatar apragacz commented on May 22, 2024

Change will be released in next (0.8) version

from django-rest-registration.

mdefeche avatar mdefeche commented on May 22, 2024

@apragacz , when will version 0.8 be released ?

from django-rest-registration.

apragacz avatar apragacz commented on May 22, 2024

@mdefeche I've just released it now

from django-rest-registration.

mdefeche avatar mdefeche commented on May 22, 2024

Thanks @apragacz :-)

from django-rest-registration.

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.