How to disable email activation in django-registration app?

前端 未结 5 622
忘了有多久
忘了有多久 2020-12-05 01:04

How to disable email activation in django-registration app?

5条回答
  •  醉酒成梦
    2020-12-05 01:54

    Why not use this method and just use the simple backend that comes with django-registration instead of the default backend?

    The new work flow would be... 1. A user signs up by filling out a registration form. 2. The user’s account is created and is active immediately, with no intermediate confirmation or activation step. 3. The new user is logged in immediately.

    so on your main urls.py you would change:

    url(r'^accounts/', include('registration.backends.default.urls')),
    

    to

    url(r'^accounts/', include('registration.backends.simple.urls')),
    

提交回复
热议问题