from django.urls import include, path
from django.contrib.auth import views as auth_views

from generales.views import Home, HomeSinPrivilegios

urlpatterns = [
    path('', Home.as_view(), name='home'),
    path('login/',
         auth_views.LoginView.as_view(template_name='generales/login.html'),
         name='login'),
    path('logout/',
         auth_views.LogoutView.as_view(template_name='generales/login.html'),
         name='logout'),
    path('sin_privilegios/',
         HomeSinPrivilegios.as_view(),
         name='sin_privilegios'),
]
Example #2
0
from django.urls import include, path
from django.contrib.auth import views as auth_views

from generales.views import Home, HomeSinPrivilegios

urlpatterns = [
    path('',Home.as_view(), name='home'),
    path('login/', auth_views.LoginView.as_view(template_name='generales/login.html'), name='login'),
    path('logout/', auth_views.LogoutView.as_view(template_name='generales/login.html'), name='logout'),
    path('sin_privilegios/', HomeSinPrivilegios.as_view(), name='sin_privilegios')
]