samarth-p/College-ERP

Admin page login loop

Anjan112 opened this issue · 6 comments

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)

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.

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??

You can create a pull request for this.

I have created a pull request.
Please accept it.

I have merged it. Thanks for contributing!

Thanks a lot, bro!! Great work..