1👍
Your second URL pattern isn’t terminated. It needs to be:
url(r'^animal/$', views.animal, name='animal')
also, you want to list your URLs from most specific to least specific. Also note that you can use the patterns prefix to keep your code a bit more DRY.
urlpatterns = patterns('views',
url(r'^animal/$', 'animal', name='animal'),
url(r'^$', 'index', name='index'),
)
as Django will try to match them top-down
Source:stackexchange.com