django-registration “remember me”

后端 未结 2 1799
太阳男子
太阳男子 2021-02-02 16:26

I need to implement a \"Remember me\" button in a login form that uses the django-registration app. Any ane can help me showing me the way for do this?

Thanks

2条回答
  •  清酒与你
    2021-02-02 16:41

    One way to do it is to change the session expiration date. This snippet gives an example: http://www.djangosnippets.org/snippets/1881/

提交回复
热议问题