Friday, May 31, 2013

Re: CBVs and using existing forms for user authentication etc

On 31 May 2013, at 12:36, tony gair wrote:

>
> I'm trying to write my first django app using cbv's and good practice ala 2 scoops!
>
> (thanks for all the help so far in this forum btw!)
>
> I have constructed the app using django braces and CBV's and have noticed that I can only authenticate into my app through the admin panel.
>
> I suspect that django already has the logging mechanism for my abstractuser and its just a matter of declaring it in my urls,
>
> is this so?
>

Yes, take a look in django.contrib.auth.views, it has many function based views I just reuse and add to my urls.py to quickly get a login system up and running.

--
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment