from django.conf.urls.defaults import *

urlpatterns = patterns('chats.views',
    url('^chats/$', 'index', name='chats_index'),
    url('^chats/new/$', 'new', name='chats_new'),
    url('^chats/(?P<id>\d+)/$', 'show', name='chats_show'),
)

from django.conf.urls.defaults import *

urlpatterns = patterns('chats.views',
    url('^chats/$', 'index', name='chats-index'),
    url('^chats/new/$', 'new', name='chats-new'),
    url('^chats/(?P<id>\d+)/$', 'show', name='chats-show'),
)

Use dashes in url names
Use dashes in url names
