Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin panel rename #11

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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.")



Expand Down
5 changes: 5 additions & 0 deletions schoolmanagement/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
from school import views
from django.contrib.auth.views import LoginView,LogoutView


admin.site.site_header = "School Management System Administration"
admin.site.site_title = "School Management System Administration"
admin.site.index_title = "Welcome to School Management System Admin Panel"

urlpatterns = [
path('admin/', admin.site.urls),
path('',views.home_view,name=''),
Expand Down