"""librarymanagement URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.conf.urls import include
from django.urls import path
from library import views
from django.contrib.auth.views import LoginView,LogoutView



urlpatterns = [
    path('admin/', admin.site.urls),
    path('accounts/',include('django.contrib.auth.urls') ),
    path('', views.home_view),

    path('adminclick', views.adminclick_view),
    path('studentclick', views.studentclick_view),


    path('adminsignup', views.adminsignup_view),
    path('studentsignup', views.studentsignup_view),
    path('adminlogin', LoginView.as_view(template_name='library/adminlogin.html')),
    path('studentlogin', LoginView.as_view(template_name='library/studentlogin.html')),

    path('logout', LogoutView.as_view(template_name='library/index.html')),
    path('afterlogin', views.afterlogin_view),

    path('addbook', views.addbook_view),
    path('viewbook', views.viewbook_view,name='viewbook'),
    # update book view
    path('update-book/<int:book_id>/',views.UpdateBookView,name='update-book'),
    #delete book view
    path('deletebook/<int:book_id>/',views.DeleteBookView,name='delete-book'),
    #search book view
    path('search/',views.SearchBookView,name='search-book'),
    #path('viewbook', views.viewbook_view,name='library/viewbook.html'),
    path('issuebook', views.issuebook_view),
    path('viewissuedbook', views.viewissuedbook_view),
    path('viewstudent', views.viewstudent_view),
    path('viewissuedbookbystudent', views.viewissuedbookbystudent),

    path('aboutus', views.aboutus_view),
    path('contactus', views.contactus_view),

]

6f3978f17fee6eb44ddf2c0f6edf96e3c2cb27f2
<mask token>

<mask token>
urlpatterns = [path('admin/', admin.site.urls), path('accounts/', include(
    'django.contrib.auth.urls')), path('', views.home_view), path(
    'adminclick', views.adminclick_view), path('studentclick', views.
    studentclick_view), path('adminsignup', views.adminsignup_view), path(
    'studentsignup', views.studentsignup_view), path('adminlogin',
    LoginView.as_view(template_name='library/adminlogin.html')), path(
    'studentlogin', LoginView.as_view(template_name=
    'library/studentlogin.html')), path('logout', LogoutView.as_view(
    template_name='library/index.html')), path('afterlogin', views.
    afterlogin_view), path('addbook', views.addbook_view), path('viewbook',
    views.viewbook_view, name='viewbook'), path(
    'update-book/<int:book_id>/', views.UpdateBookView, name='update-book'),
    path('deletebook/<int:book_id>/', views.DeleteBookView, name=
    'delete-book'), path('search/', views.SearchBookView, name=
    'search-book'), path('issuebook', views.issuebook_view), path(
    'viewissuedbook', views.viewissuedbook_view), path('viewstudent', views
    .viewstudent_view), path('viewissuedbookbystudent', views.
    viewissuedbookbystudent), path('aboutus', views.aboutus_view), path(
    'contactus', views.contactus_view)]

<mask token>
from django.contrib import admin
from django.conf.urls import include
from django.urls import path
from library import views
from django.contrib.auth.views import LoginView, LogoutView
urlpatterns = [path('admin/', admin.site.urls), path('accounts/', include(
    'django.contrib.auth.urls')), path('', views.home_view), path(
    'adminclick', views.adminclick_view), path('studentclick', views.
    studentclick_view), path('adminsignup', views.adminsignup_view), path(
    'studentsignup', views.studentsignup_view), path('adminlogin',
    LoginView.as_view(template_name='library/adminlogin.html')), path(
    'studentlogin', LoginView.as_view(template_name=
    'library/studentlogin.html')), path('logout', LogoutView.as_view(
    template_name='library/index.html')), path('afterlogin', views.
    afterlogin_view), path('addbook', views.addbook_view), path('viewbook',
    views.viewbook_view, name='viewbook'), path(
    'update-book/<int:book_id>/', views.UpdateBookView, name='update-book'),
    path('deletebook/<int:book_id>/', views.DeleteBookView, name=
    'delete-book'), path('search/', views.SearchBookView, name=
    'search-book'), path('issuebook', views.issuebook_view), path(
    'viewissuedbook', views.viewissuedbook_view), path('viewstudent', views
    .viewstudent_view), path('viewissuedbookbystudent', views.
    viewissuedbookbystudent), path('aboutus', views.aboutus_view), path(
    'contactus', views.contactus_view)]

"""librarymanagement URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.conf.urls import include
from django.urls import path
from library import views
from django.contrib.auth.views import LoginView,LogoutView



urlpatterns = [
    path('admin/', admin.site.urls),
    path('accounts/',include('django.contrib.auth.urls') ),
    path('', views.home_view),

    path('adminclick', views.adminclick_view),
    path('studentclick', views.studentclick_view),


    path('adminsignup', views.adminsignup_view),
    path('studentsignup', views.studentsignup_view),
    path('adminlogin', LoginView.as_view(template_name='library/adminlogin.html')),
    path('studentlogin', LoginView.as_view(template_name='library/studentlogin.html')),

    path('logout', LogoutView.as_view(template_name='library/index.html')),
    path('afterlogin', views.afterlogin_view),

    path('addbook', views.addbook_view),
    path('viewbook', views.viewbook_view,name='viewbook'),
    # update book view
    path('update-book/<int:book_id>/',views.UpdateBookView,name='update-book'),
    #delete book view
    path('deletebook/<int:book_id>/',views.DeleteBookView,name='delete-book'),
    #search book view
    path('search/',views.SearchBookView,name='search-book'),
    #path('viewbook', views.viewbook_view,name='library/viewbook.html'),
    path('issuebook', views.issuebook_view),
    path('viewissuedbook', views.viewissuedbook_view),
    path('viewstudent', views.viewstudent_view),
    path('viewissuedbookbystudent', views.viewissuedbookbystudent),

    path('aboutus', views.aboutus_view),
    path('contactus', views.contactus_view),

]
