Comments (12)
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.
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.
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.
@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.
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.
@jpic Could you explain what you mean by that? E.g. provide an example (snippet of code).
from django-rest-registration.
@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.
And please do update django rest framework dependency to latest.
from django-rest-registration.
Change will be released in next (0.8) version
from django-rest-registration.
@apragacz , when will version 0.8 be released ?
from django-rest-registration.
@mdefeche I've just released it now
from django-rest-registration.
Thanks @apragacz :-)
from django-rest-registration.
Related Issues (20)
- Custom mail templates source HOT 1
- Add ‘REGISTER_RETRIEVE_TOKEN’ HOT 3
- Error messages being stripped out of their codes. HOT 3
- To be able to return a custom response on successful password reset using data from request. HOT 2
- Support for Django 4.x HOT 2
- Please add ability to add user fields to successful login response HOT 4
- Setting to disable new user registration (the `/register` endpoint) HOT 4
- Page not found (404) HOT 6
- Why is there a check for a specific backend? HOT 6
- Remove check for LOGIN_FIELDS being unique HOT 1
- Dependency conflict in development requirements. HOT 2
- Fix type ignore issues
- Swagger generation through generateschema failing with VerifyRegistrationView HOT 2
- 'VerifyRegistrationView' should either include a `serializer_class` attribute, or override the `get_serializer_class()` method HOT 4
- user_activated not invoked HOT 2
- Cannot use a custom registration serializer that has a nested serializer HOT 5
- error while run `make install_dev`, Building wheel for backports-zoneinfo (pyproject.toml) did not run successfully. HOT 5
- Minor suggestion: correct typo in reset password view name HOT 1
- Customized registration process HOT 11
- Django signal user_logged_in is not always fired when login via login endpoint is performed successfully
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from django-rest-registration.