The Django URL dispatch system
The Django URL dispatch system, which allows to bind a view to a URL pattern. This mechanism allows to get clean URL scheme, without any extensions, an idea supported by Tim Berners-Lee.
When Django can’t find a regex matching the requested URL, or when an exception is raised, Django will invoke an error-handling view.
Example
from django.conf.urls import patterns, url
urlpatterns = patterns('',
url(r'^articles/2003/$', 'news.views.special_case_2003'),
url(r'^articles/(\d{4})/$', 'news.views.year_archive'),
url(r'^articles/(\d{4})/(\d{2})/$', 'news.views.month_archive'),
url(r'^articles/(\d{4})/(\d{2})/(\d+)/$', 'news.views.article_detail'),
)
See: https://docs.djangoproject.com/en/stable/topics/http/urls/