Friday, March 30, 2018

How to make a custom login() using Django login() method?

Hi Django Users,

This is my first-time post.

I want to return my own SusanTemplateResponse class in

https://github.com/django/django/blob/stable/1.10.x/django/contrib/auth/views.py#L98
instead of the default Django "TemplateResponse" that gets returned. What is a good way
to do that?

SusanTemplateResponse is my version of django.template.repsonseimport TemplateResponse.

I'm using Django 1.10.

Susan Tan

--
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 https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d730820f-6ee9-4e8a-8f3d-107373cbd3b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment