Controle de faturas e bloqueio de usuários para o sistema de lojas web
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

45 lines
2.2 KiB

from django.urls import path, re_path
from django.contrib.auth import views as auth_views
from ..views.site import ClientesApagarView, ClientesAtualizarView, ClientesBoletosView, ClientesDetalhesView, ClientesHistoricoView, ClientesIndexView, ClientesListaView, IndexView, PessoasCriarView, PessoasIndexView, PessoasListaView, PessoasAtualizarView, PessoasApagarView, PessoasHistoricoView, ClientesCriarView
urlpatterns = [
path('', IndexView.as_view(), name="home"),
path('login/', auth_views.LoginView.as_view(
template_name='controle/autenticacao/login.html'), name="login"),
path(
'logout/',
auth_views.LogoutView.as_view(
next_page='/'), name="logout"
),
# Pessoas
re_path(r'^pessoas$', PessoasIndexView.as_view(), name='pessoas-index'),
re_path(r'^pessoas/lista$', PessoasListaView.as_view(),
name='pessoas-lista'),
re_path(r'^pessoas/add$', PessoasCriarView.as_view(),
name='pessoas-criar'),
re_path(r'^pessoas/(?P<pk>\d+)$', PessoasAtualizarView.as_view(),
name='pessoas-atualizar'),
re_path(r'^pessoas/(?P<pk>\d+)/apagar', PessoasApagarView.as_view(),
name='pessoas-apagar'),
re_path(r'^pessoas/(?P<pk>\d+)/historico', PessoasHistoricoView.as_view(),
name='pessoas-historico'),
# Clientes
re_path(r'^clientes$', ClientesIndexView.as_view(),
name='clientes-index'),
re_path(r'^clientes/lista$', ClientesListaView.as_view(),
name='clientes-lista'),
re_path(r'^clientes/add$', ClientesCriarView.as_view(),
name='clientes-criar'),
re_path(r'^clientes/(?P<pk>\d+)$', ClientesAtualizarView.as_view(),
name='clientes-atualizar'),
re_path(r'^clientes/(?P<pk>\d+)/apagar', ClientesApagarView.as_view(),
name='clientes-apagar'),
re_path(r'^clientes/(?P<pk>\d+)/historico', ClientesHistoricoView.as_view(),
name='clientes-historico'),
re_path(r'^clientes/(?P<pk>\d+)/detalhes$', ClientesDetalhesView.as_view(),
name='clientes-detalhes'),
re_path(r'^clientes/(?P<pk>\d+)/boletos$', ClientesBoletosView.as_view(),
name='clientes-boletos'),
]