Skip to content

Instantly share code, notes, and snippets.

@leydson-vieira
Created March 10, 2017 17:56
Show Gist options
  • Save leydson-vieira/1bde4a745463a9dc3ec7edb03d9e7fd5 to your computer and use it in GitHub Desktop.
Save leydson-vieira/1bde4a745463a9dc3ec7edb03d9e7fd5 to your computer and use it in GitHub Desktop.
from django.conf.urls import url
from usuario import views
urlpatterns = [
url(r'^cadastro/$',views.UsuarioCreateView.as_view(), name='cadastro' ),
url(r'^editar/(?P<slug>[-\w\W\d]+)/$',views.UsuarioUpdateView.as_view(), name='editar_cadastro'),
url(r'^senha/(?P<slug>[-\w\W\d]+)/$',views.PasswordChangeView.as_view(), name='senha'),
url(r'^excluir/(?P<slug>[-\w\W\d]+)/$',views.UsuarioDeleteView.as_view(), name='excluir_cadastro')
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment