Is it safe to code against django’s auth_view for password_change or is there any class-based view that I can use?
I am converting all my function based views to class based views, but I have coded against django’s auth_view that is not class based.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To answer your updated question about whether Django will support class-based auth views in the core: based on what I can see in Django trunk (1.4 should be released soon), the answer is “no, not anytime soon.”
There is one project that I’ve found that has a provides some class-based views for authentication.
django-class-based-auth-views
It only has the login view at the moment, though.
Update: Myself and my employer have released a packaged called django-sky-visitor that has some class based authentication views in it that might be helpful here.