Admin page login loop
Anjan112 opened this issue · 6 comments
Anjan112 commented
loop.mp4
The admin page seems to loop back to the logout page in spite of logging in (This happened when I clicked on the visit page link)
samarth-p commented
The admin user can only login to the django admin page currently. The users usually have a teacher or student attribute. Since, admin user has neither, I think it directly logs you out.
Anjan112 commented
Since its a broken link can you remove it.
I have suggested a sample code below...
Code:
(info\urls.py)
from django.contrib import admin
admin.site.site_url= None
admin.site.site_header = 'My Site'
Can you consider removing it??
samarth-p commented
You can create a pull request for this.
Anjan112 commented
I have created a pull request.
Please accept it.
samarth-p commented
I have merged it. Thanks for contributing!
Anjan112 commented
Thanks a lot, bro!! Great work..