django-registration “remember me”

后端 未结 2 1805
太阳男子
太阳男子 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/

    0 讨论(0)
  • 2021-02-02 16:51

    Apparently, there's module for that:

    http://code.google.com/p/django-remember-me/

    I haven't used it but it came up during my search.

    0 讨论(0)
提交回复
热议问题