I installed a very basic project on django with the allauth module. It works well...except that i have a 404 page when i try to logout using http://localhost:8000/accounts/logout/.
The urls.py
urlpatterns = [
url(r'^accounts/', include('allauth.urls')),
url(r'^aboutus/$', TemplateView.as_view(template_name="aboutus.html"), name="aboutus"),
url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
url(r'^admin/', include(admin.site.urls)),
]
and in settings.py i set ACCOUNT_LOGOUT_ON_GET= True
to avoid the logout confirmation.
My goal is to set path: login page-->aboutus:click on logout button--> login page.
I read on internet a lot of stuff but it still does not work.
Please help
solution in the setting file : ACCOUNT_LOGOUT_REDIRECT_URL ="/accounts/login"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With