Redirect User to another url with django-allauth log in signal

前端 未结 4 663
小鲜肉
小鲜肉 2020-12-30 22:34

I am using Django-allauth for my login/signup related stuff, so when a user signs up(first time) into my site, I am redirecting him to /thanks/ page by defining

4条回答
  •  独厮守ぢ
    2020-12-30 22:56

    the answer here is very simple, you do not need any signals or overriding the DefaultAccountAdapter in settings.py just add a signup redirect_url

    ACCOUNT_SIGNUP_REDIRECT_URL = "/thanks/"
    LOGIN_REDIRECT_URL = "/dashboard/"
    

提交回复
热议问题