Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions school/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ def afterlogin_view(request):
return redirect('student-dashboard')
else:
return render(request,'school/student_wait_for_approval.html')
if request.user.is_superuser:
return render(request,'school/admin_dashboard.html')

return HttpResponse("Please Login with correct credentials.")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how to resolve after login isuue




Expand Down