81335/how-to-configure-where-to-redirect-after-a-log-out-in-django
Just wondering where I can set the url to redirect to after logout. I know you can set the login url. I want to redirect to my home page.
Hello @kartik,
You don't need to overwrite or wrap anything.
You can just supply the next_page argument to the logout view.
(r'^logout/$', 'django.contrib.auth.views.logout', {'next_page': '/successfully_logged_out/'})
Hope it helps!! Thank you!!
You can use QtCore.QTimer class Example(QWidget): def __init__(self, app): QWidget.__init__(self) QTimer.singleShot(0, ...READ MORE
n = list(range(10)) b = list(filter(lambda i:i%2!=0,n)) print(b) READ MORE
There are various ways we can replace ...READ MORE
Hi @Mike. First, read both the csv ...READ MORE
Hi, there is only that way and ...READ MORE
Hi all, with regard to the above ...READ MORE
Hello @kartik, To turn off foreign key constraint ...READ MORE
Hello @kartik, Let's say you have this important ...READ MORE
Hello @kartik, Only change your pub_date if published has ...READ MORE
Hello @kartik, You can override templates/admin/index.html and add the JavaScript ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.