Create UserProfile Model after User signed up using allauth Django -


i have django project in there userprofile having onetoone user model. uses django-allauth registration.

i accepting registration via account , social account. upon signing up, want user redirected page create userprofile user account.

how ?

i have read, there 1 signal called user_signed_up, can used redirect user page ? tried code below, doesn't redirect me page wanted.

@receiver(user_signed_up, dispatch_uid="some.unique.string.id.for.allauth.user_signed_up") def do_stuff_after_sign_up(sender, **kwargs):     request = kwargs['request']     user = kwargs['user']     return redirect ('/test/') 

any appreciated. :)


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -