Re: Why is there no view for sign up in django.contrib.auth.views?
Russell,
I disagree. You say that logging in has constant requirements but it doesn't. Some applications will require a username and a password, others will require an email address and a password, others will have some sort of captcha, others will have 2-factor authentication...
So logging in has as much constant requirements as registration does.
I believe it would be good to have a simple registration view and form just to get people started, like the login and logout ones. Just like you made some assumptions to provide a view and a form for logging in (which, again, doesn't necessarily suite every project), it would be simple to provide a view and a form for registration.
Cheers,
Raúl
On Saturday, 6 April 2013 02:18:18 UTC+1, Russell Keith-Magee wrote:
On Sat, Apr 6, 2013 at 8:40 AM, Cody Scott <cody.j....@gmail.com> wrote:If I want users to sign up for my site, I need to make a register view, register form and a register template.Why is there a view and form for every other user account action (login, logout, etc.)Logging in has constant requirements - a username and a password. You must provide both, or you can't log in. The forms and views to support this are simple. Logging out doesn't require any user data at all - you just log out the currently logged in user.What would you propose we put on a "register" view? Every project is going to have different registration requirements. For that matter, there's also different registration processes - are you going to enforce verification of email addresses? Do you want to gather profile information before or after the email address has been verified?*That* is why there isn't a baked in Django "register" view, form and template.There are, however, third party apps that can help. django-registration and django-profiles for example provide generic implementations of specific registration procedures. djangopackages.com is a good indication of the sorts of third-party tools that are available.This also points out an important philosophical approach with Django - Django is much more that just the core. Django is a wide ecosystem of packages and tools. The wider ecosystem provides a lot more functionality that the core can ever provide, and it helps to distribute the load of maintaining these tools over a much wider group of individuals.Yours,Russ Magee %-)
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home