hello fahad rasool.

just try this.
from django.shortcuts import redirect

return redirect('userprofile)

On Wed, May 6, 2020 at 9:41 AM fahad rasool <rasoolfahad...@gmail.com>
wrote:

> I want to ask that i am working on django platform on a project ,which is
> basically an system that generates a diet plan for user..
>
> The flow is that a user has to register and sign up after registration, a
> form (userinfo form )is to be filled by user,on basis of which diet plan is
> generated.
>
> Now my question is when the same user login second time ,i did not want
> userinfo form to be displayed again and and again,r ather i want user to
> redirect to userprofile page..
>
> Please help i have stuck here for about 3 days..
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CACqgSmCE4gxFtUSaXYRCTfuni3iS65TNrOOGQpz8CueD38u2pQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CACqgSmCE4gxFtUSaXYRCTfuni3iS65TNrOOGQpz8CueD38u2pQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAL%3DqnfUqibNNTQpd%2B7K5uPTf2WcptkFNOO6%2BsSLUS7cUe7895g%40mail.gmail.com.

Reply via email to