You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a working django-desktop served over nginx as a proxy server and uvicorn as the asgi app server.
I installed it through pip.
Everything works, but the Logout button from the app. The logout button from django admin does work as it leads to https://192.168.xxx.xxx/logout/ and I get a message as "GET /logout/ HTTP/1.0" 405 Method Not Allowed
I am aware that since django 5.0 (I am using dijango 5.02) you cannot use GET to logout because of security issues, and already tried to replace the logout button with a miniform that forces the use of POST in order to logout (in navigation_header.html), but it still uses GET.
Using VSCode, I already searched for every file that contains "Logout". This search includes my project folder and my 'venv' folder which at the same time includes helpdesk and all of its files. I tried to pinpoint what template is the one used (even though i think it's 'navigation_header.html') replacing every 'Logout' string in every helpdesk template to 'Logout1', 'Logout2' and so on, hoping I would see the modified string in the rendered site, all with no avail.
I also tried changing the origin of the LogoutView imported to the one from django.contrib.auth, and put a print statement just at the start of every method to see which method is the one that's being called but nothing (I got debg=True btm).
It really baffles me that I cannot pinpoint where the problem is... and also where does the 'Logout' string from the nav-bar drop-down comes from? Is there a .capitalize() method used over a 'logout' string somewhere else?
The text was updated successfully, but these errors were encountered:
I have a working django-desktop served over nginx as a proxy server and uvicorn as the asgi app server.
I installed it through pip.
Everything works, but the Logout button from the app. The logout button from django admin does work as it leads to https://192.168.xxx.xxx/logout/ and I get a message as "GET /logout/ HTTP/1.0" 405 Method Not Allowed
I am aware that since django 5.0 (I am using dijango 5.02) you cannot use GET to logout because of security issues, and already tried to replace the logout button with a miniform that forces the use of POST in order to logout (in navigation_header.html), but it still uses GET.
Using VSCode, I already searched for every file that contains "Logout". This search includes my project folder and my 'venv' folder which at the same time includes helpdesk and all of its files. I tried to pinpoint what template is the one used (even though i think it's 'navigation_header.html') replacing every 'Logout' string in every helpdesk template to 'Logout1', 'Logout2' and so on, hoping I would see the modified string in the rendered site, all with no avail.
I also tried changing the origin of the LogoutView imported to the one from django.contrib.auth, and put a print statement just at the start of every method to see which method is the one that's being called but nothing (I got debg=True btm).
It really baffles me that I cannot pinpoint where the problem is... and also where does the 'Logout' string from the nav-bar drop-down comes from? Is there a .capitalize() method used over a 'logout' string somewhere else?
The text was updated successfully, but these errors were encountered: