logout_redirect_url not defined

53 views
Skip to first unread message

abdallah elassaad

unread,
Sep 21, 2022, 9:32:19 PM9/21/22
to Django users
can you pls help 
in my "setting.py"
i add this line
LOGOUT_REDIRECT_URL ='index'

in terminal i receive this message :

'LOGOUT_REDIRECT_URL' is not defined

what is missing or how i should define it 

Ahmed Abdelmonem

unread,
Sep 21, 2022, 11:09:56 PM9/21/22
to django...@googlegroups.com
You should write it this way :  '/login/'  in urls.py  should be written path('login/', ....etc) or index instead in your case.


--
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/b49c2159-8bfb-4c9e-8491-957824af52edn%40googlegroups.com.

Sonu

unread,
Sep 22, 2022, 12:04:46 PM9/22/22
to django...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages