How to disable email activation in django-registration app?

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

How to disable email activation in django-registration app?

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-05 02:01

    In the current tip versions of django-registration there is a simple backend with no email and you can write your own backend to specify the workflow you want. See here https://bitbucket.org/ubernostrum/django-registration/src/fad7080fe769/docs/backend-api.rst for documentation.

    To use the simple one without email, just change your urls.py to point to this backend, eg.

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

提交回复
热议问题