Singup Users

9 views
Skip to first unread message

hajar Benjat

unread,
Apr 6, 2020, 9:07:29 PM4/6/20
to Django users
hello django users how are you ?

I have two questions !!

how can I make users who sign up in my application to not log in without admin permission , 

now the user can sign up and log in directly and I don't want that happen in my application without admin permission , I hope you guys can advice me.

second question is ; the user when he click on logout he is redirected to login again as administrator , I know u have faced it before , I hope you can give me some ideas about this to make the user back to my login form not the admin one.

thanks in advance , 




Lutalo Bbosa joseph

unread,
Apr 6, 2020, 9:14:04 PM4/6/20
to django...@googlegroups.com
U can read about the @login_required decorator in django and for redirecting its about handling the actions in the form with the url

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c6580d60-d64d-4a7f-84b0-327c387df8f1%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages