Source

tutorial-django-crud / urls.py

from django.conf.urls.defaults import *

urlpatterns = patterns('',
    # Example:
    # (r'^dj_portal_abc/', include('dj_portal_abc.foo.urls')),

    # Uncomment the admin/doc line below and add 'django.contrib.admindocs' 
    # to INSTALLED_APPS to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/', include(admin.site.urls)),
    (r'^usuarios/$', 'usuarios.views.listar_usuarios'),
    (r'^usuarios/novo/$', 'usuarios.views.novo'),
    (r'^usuarios/(?P<id>\d+)/$', 'usuarios.views.ver_usuario'),
    (r'^usuarios/(?P<id>\d+)/apagar/$', 'usuarios.views.apagar'),
    (r'^usuarios/(?P<id>\d+)/editar/$', 'usuarios.views.editar'),    
)