Hi,
you can use request.user and check for this if exists.
If so you can redirect this user to another page or in your template do not
show any thing or pop up some errors.

‫<‪a...@codism.io‬‏> در تاریخ جمعه ۲۳ نوامبر ۲۰۱۸ ساعت ۲۰:۴۹ نوشت:‬

> If suppose a user is logged in to the system, and then the user goes to
> the url and go to register page using the url for ex. localhost/register.
> We don,t want this to happen. We don't want the user to go to the register
> page when he is already logged in. How can we resolve this issue? Please
> help
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/93e2d87e-83e1-4656-8dab-153dfb41e5e9%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/93e2d87e-83e1-4656-8dab-153dfb41e5e9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAJjGCEMu3oGMiwgo3MzmkFWNH1BzwiP69eH%3DEGa47mMtf9NMgQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
  • Need help adil
    • Re: Need help رهام صادقی

Reply via email to