"""colegio URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.2/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.urls import path, include
from django.contrib.auth.views import LogoutView, LoginView
from matriculas.views import Viendodocente, Viendoestudiante, Viendomatricula, Viendoperfil, Editperfil, Insertarperfil, Editdocente, Insertardocente, Editestudiante, Insertarestudiante, Editmatricula, Insertarmatricula, Elimperfil, Elimmatricula, Elimestudiante, Elimdocente



urlpatterns = [
    path('grappelli/', include('grappelli.urls')), # grappelli URLS
    path('admin/', admin.site.urls), # admin site
    path('verdocente/', Viendodocente.as_view()),
    path('verestudiante/', Viendoestudiante.as_view()),
    path('vermatricula/', Viendomatricula.as_view()),
    path('verperfil/', Viendoperfil.as_view()),
    path('editperfil/<int:pk>/', Editperfil.as_view()),
    path('insertarperfil/', Insertarperfil.as_view()),
    path('editdocente/<int:pk>/', Editdocente.as_view()),
    path('insertardocente/', Insertardocente.as_view()),
    path('editestudiante/<int:pk>/', Editestudiante.as_view()),
    path('insertarestudiante/', Insertarestudiante.as_view()),
    path('editmatricula/<int:pk>/', Editmatricula.as_view()),
    path('insertarmatricula/', Insertarmatricula.as_view()),
    path('elimperfil/<int:pk>/', Elimperfil.as_view()),
    path('elimmatricula/<int:pk>/', Elimmatricula.as_view()),
    path('elimestudiante/<int:pk>/', Elimestudiante.as_view()),
    path('elimdocente/<int:pk>/', Elimdocente.as_view()),

    path ('login/', LoginView.as_view(template_name='login.html'), name='login'),
    path('logout', LogoutView.as_view())
    path('admin/', admin.site.urls),] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)




]
